Function is_readable doesn't work correctly

From: Date: Tue, 08 Oct 2002 12:20:31 +0000
Subject: Function is_readable doesn't work correctly
Groups: php.general 
Request: Send a blank email to php-general+get-119235@lists.php.net to get a copy of this message
Hello. I have compiled PHP 4.2.3 with Apache 2.0.42 and my problem is, that the function is_readable doesn't work as I expected. It is allways returning false and not check the current permission to file. For example: <?php if (is_readable("owner.php")) echo "READABLE"; else echo "UNREADABLE"; include ("owner.php"); ?> The result is: Script print to browser UNREADABLE and correctly include the file owner.php to browser. I think, that it means the file is readable. Thanks Rudolf Wolf.

« previous php.general (#119235) next »