note 129866 added to function.file-exists
| From: | tobyhoward@gmail.com | Date: | Sat, 23 Nov 2024 22:30:44 +0000 |
| Subject: | note 129866 added to function.file-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221665@lists.php.net to get a copy of this message | ||
If you suspect the file path you are testing contains spaces, DO NOT put your path in quotes, either
single or double. file_exists() will interpret the quotes as characters belonging to the file path.
Instead, do nothing special: file_exists() will correctly escape spaces on your behalf.
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 84.92.107.198)
----
Manual Page -- https://php.net/manual/en/function.file-exists.php
Edit -- https://main.php.net/note/edit/129866
Del: integrated -- https://main.php.net/note/delete/129866/integrated
Del: useless -- https://main.php.net/note/delete/129866/useless
Del: bad code -- https://main.php.net/note/delete/129866/bad+code
Del: spam -- https://main.php.net/note/delete/129866/spam
Del: non-english -- https://main.php.net/note/delete/129866/non-english
Del: in docs -- https://main.php.net/note/delete/129866/in+docs
Del: other reasons-- https://main.php.net/note/delete/129866
Reject -- https://main.php.net/note/reject/129866
Search -- https://main.php.net/manage/user-notes.php