note 57537 added to function.is-readable
| From: | scott at firefallpro dot com | Date: | Thu, 06 Oct 2005 19:33:59 +0000 |
| Subject: | note 57537 added to function.is-readable | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-96525@lists.php.net to get a copy of this message | ||
Unlike some PHP functions it appears as if is_readable() requires a file's absolute path in PHP
4.3.11. Example:
<?php
is_readable("filename.txt"); // returns false
is_readable("/absolutepath/filename.txt"); // returns true
?>
stat() even goes as far as to say the file isn't there. If I've made a mistake, please
e-mail me.
----
Manual Page -- http://www.php.net/manual/en/function.is-readable.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57537
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57537&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57537&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57537&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57537&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57537&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57537&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57537&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57537&report=yes
Search -- http://master.php.net/manage/user-notes.php