note 26561 added to function.file-exists
| From: | sigurd at rack1 dot php dot net | Date: | Tue, 05 Nov 2002 03:02:23 +0000 |
| Subject: | note 26561 added to function.file-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-38978@lists.php.net to get a copy of this message | ||
It appears that the file_exists() function is case insensive (atleast with Redhat), which on linux
is somewhat strange given you can have two files of the same 'name' but different cases.
Thus, you need to use is_readable() instead/as well, as this is case insensitive.
--
http://www.php.net/manual/en/function.file-exists.php
http://master.php.net/manage/user-notes.php?action=edit+26561
http://master.php.net/manage/user-notes.php?action=delete+26561
http://master.php.net/manage/user-notes.php?action=reject+26561