note 97774 added to function.file-exists

From: Date: Fri, 07 May 2010 06:11:58 +0000
Subject: note 97774 added to function.file-exists
Groups: php.notes 
Request: Send a blank email to php-notes+get-169042@lists.php.net to get a copy of this message
If you simply want to check that some file (not directory) exists, and concerned about performance, try is_file() instead. I timed is_file and file_exists, it seems like is_file() is almost 2x faster when a file exists and about the same when it doesn't. ---- Server IP: 216.235.13.26 Probable Submitter: 173.35.233.56 ---- Manual Page -- http://www.php.net/manual/en/function.file-exists.php Edit -- https://master.php.net/note/edit/97774 Del: integrated -- https://master.php.net/note/delete/97774/integrated Del: useless -- https://master.php.net/note/delete/97774/useless Del: bad code -- https://master.php.net/note/delete/97774/bad+code Del: spam -- https://master.php.net/note/delete/97774/spam Del: non-english -- https://master.php.net/note/delete/97774/non-english Del: in docs -- https://master.php.net/note/delete/97774/in+docs Del: other reasons-- https://master.php.net/note/delete/97774 Reject -- https://master.php.net/note/reject/97774 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#169042) next »