note 61293 added to function.is-readable
| From: | jo at durchholz dot org | Date: | Mon, 30 Jan 2006 17:15:54 +0000 |
| Subject: | note 61293 added to function.is-readable | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-102733@lists.php.net to get a copy of this message | ||
DrTebi at yahoo dot com is wrong. is_readable() checks whether you can do file_get_contents() or
similar calls, no more, no less. If the location given returns a 500 or 403 error, you can still
read() that (you'll simply get the error page), but it's still read()able. Using
is_readable to check the validity of a URL is simply the wrong function.
----
Server IP: 64.246.30.37
Probable Submitter: 84.175.3.195
----
Manual Page -- http://www.php.net/manual/en/function.is-readable.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+61293
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61293&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61293&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61293&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61293&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61293&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61293&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61293&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+61293&report=yes
Search -- http://master.php.net/manage/user-notes.php