note 68067 added to function.file-exists
| From: | stefan at horn dot nl | Date: | Wed, 12 Jul 2006 06:30:53 +0000 |
| Subject: | note 68067 added to function.file-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-114688@lists.php.net to get a copy of this message | ||
file_exists and safe_mode
file_exists under safe_mode works (I work with for php 4) doesn't work when owner of the dir
where the file stands differs from the php-owner.
e.g. file_exists in this dir will give FALSE nevertheless the file exists
rights owner dir
drwxr-xr-x apache images
change the owner of the dir to the phpowner and file_exists works.
I spent too much time to discover. Hope it will spare a lot of your time.
Stefan
----
Server IP: 83.137.20.120
Probable Submitter: 213.84.58.208
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.file-exists.php
Edit -- http://master.php.net/note/edit/68067
Del: integrated -- http://master.php.net/note/delete/68067/integrated
Del: useless -- http://master.php.net/note/delete/68067/useless
Del: bad code -- http://master.php.net/note/delete/68067/bad+code
Del: spam -- http://master.php.net/note/delete/68067/spam
Del: non-english -- http://master.php.net/note/delete/68067/non-english
Del: in docs -- http://master.php.net/note/delete/68067/in+docs
Del: other reasons-- http://master.php.net/note/delete/68067
Reject -- http://master.php.net/note/reject/68067
Search -- http://master.php.net/manage/user-notes.php