note 119751 added to function.file-exists
| From: | ziptwipi at goioia dot com | Date: | Wed, 17 Aug 2016 17:44:40 +0000 |
| Subject: | note 119751 added to function.file-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-206309@lists.php.net to get a copy of this message | ||
Note that realpath() will return false if the file doesn't exist. So if you're going to
absolutize the path and resolve symlinks anyway, you can just check the return value from realpath()
instead of calling file_exists() first
----
Server IP: 72.52.91.14
Probable Submitter: 24.89.139.58
----
Manual Page -- http://php.net/manual/en/function.file-exists.php
Edit -- https://master.php.net/note/edit/119751
Del: integrated -- https://master.php.net/note/delete/119751/integrated
Del: useless -- https://master.php.net/note/delete/119751/useless
Del: bad code -- https://master.php.net/note/delete/119751/bad+code
Del: spam -- https://master.php.net/note/delete/119751/spam
Del: non-english -- https://master.php.net/note/delete/119751/non-english
Del: in docs -- https://master.php.net/note/delete/119751/in+docs
Del: other reasons-- https://master.php.net/note/delete/119751
Reject -- https://master.php.net/note/reject/119751
Search -- https://master.php.net/manage/user-notes.php