RE: [PHP] Function is_readable doesn't work correctly
| From: | David Freeman | Date: | Tue, 08 Oct 2002 21:15:56 +0000 |
| Subject: | RE: [PHP] Function is_readable doesn't work correctly | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-119339@lists.php.net to get a copy of this message | ||
> <?php
> if (is_readable("owner.php"))
> echo "READABLE";
> else
> echo "UNREADABLE";
> include ("owner.php");
> ?>
According to the manual, the results of is_readable() is cached. So, if
you've been testing this and have both readable and unreadable you may
have the wrong one cached. Perhaps a check of the manual to see what
you should do about it?
(I've not used this function so I don't have any personal experience of
what should happen)
CYA, Dave