note 110584 added to function.file-exists
| From: | vidda at hardouaibe dot org | Date: | Fri, 09 Nov 2012 14:53:52 +0000 |
| Subject: | note 110584 added to function.file-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-191825@lists.php.net to get a copy of this message | ||
Thanks to Hex for comparison of is_file() and file_exists().
Scripts are much faster and there's no doubt to have for any directory named
'mydir.php' instead of systematical check with is_dir()
Tested on Ubuntu 12.04 (php 5.3.10, apache2) and Windows XP and Seven (EasyPHP 5.3.9)
----
Server IP: 69.147.83.199
Probable Submitter: 82.244.161.70
----
Manual Page -- http://www.php.net/manual/en/function.file-exists.php
Edit -- https://master.php.net/note/edit/110584
Del: integrated -- https://master.php.net/note/delete/110584/integrated
Del: useless -- https://master.php.net/note/delete/110584/useless
Del: bad code -- https://master.php.net/note/delete/110584/bad+code
Del: spam -- https://master.php.net/note/delete/110584/spam
Del: non-english -- https://master.php.net/note/delete/110584/non-english
Del: in docs -- https://master.php.net/note/delete/110584/in+docs
Del: other reasons-- https://master.php.net/note/delete/110584
Reject -- https://master.php.net/note/reject/110584
Search -- https://master.php.net/manage/user-notes.php