note 26928 added to function.file-exists
| From: | moni at kodar dot net | Date: | Mon, 18 Nov 2002 09:10:12 +0000 |
| Subject: | note 26928 added to function.file-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-39623@lists.php.net to get a copy of this message | ||
Another solution for the problem with relative paths with file_exists and Apache 2.0.43 + PHP 4.2.3
is :
file_exists($rel_path); //Original code
file_exists(realpath($rel_path)); //Modified one
It seems that realpath(..) works fine.
Moni
--
http://www.php.net/manual/en/function.file-exists.php
http://master.php.net/manage/user-notes.php?action=edit+26928
http://master.php.net/manage/user-notes.php?action=delete+26928
http://master.php.net/manage/user-notes.php?action=reject+26928