note 26286 added to function.file-exists
| From: | tom at tom420 dot com | Date: | Fri, 25 Oct 2002 02:27:29 +0000 |
| Subject: | note 26286 added to function.file-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-38526@lists.php.net to get a copy of this message | ||
I am using Linux Red Hat 7.2
I have just upgraded from
Apache 1.3.x + PHP 4.2.1
to
Apache 2.0.43 + PHP 4.2.3
and suddenly all my file_exists() started to fail. All I can say is adding getcwd() at the beginning
makes it work again. Looks like something has changed in the way that file_exists() is working
between 4.2.1 and 4.2.3.
So file_exists ($file) fails but file_exists (getcwd() ."/". $file) works as expected.
--
http://www.php.net/manual/en/function.file-exists.php
http://master.php.net/manage/user-notes.php?action=edit+26286
http://master.php.net/manage/user-notes.php?action=delete+26286
http://master.php.net/manage/user-notes.php?action=reject+26286