note 55431 added to function.is-readable
| From: | AntiVeeranna at osu1 dot php dot net | Date: | Wed, 03 Aug 2005 13:36:56 +0000 |
| Subject: | note 55431 added to function.is-readable | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-93004@lists.php.net to get a copy of this message | ||
> Safe mode limitations are not taken into account.
I believe that the above sentence is wrong. Tested with PHP 4.3.10
is_readable($filename) returns false if $filename and the script are owned by different users. Using
stat on the same $filename yields the error message "stat(): SAFE MODE Restriction in effect.
The script whose uid is XXXX is not allowed to access..".
----
Manual Page -- http://www.php.net/manual/en/function.is-readable.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+55431
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55431&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55431&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55431&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55431&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55431&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55431&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+55431&report=yes
Search -- http://master.php.net/manage/user-notes.php