scandir() permissions

From: Date: Sun, 26 Jul 2009 09:56:54 +0000
Subject: scandir() permissions
Groups: php.general 
Request: Send a blank email to php-general+get-295839@lists.php.net to get a copy of this message
code: <?php $files = scandir('/home/kranthi/downloaded'); var_dump($files); permissions for the dir: $ ls -lA drwxrwxrwx 2 apache apache all the files in the directory have permissions -rw-rw-rw- 1 apache apache when i run the above code via CLI, with user "kranthi" it is working as expected. but if i run the above code via http server (running as user "apache") i am getting permission denied error. ny ideas ? Kranthi.

« previous php.general (#295839) next »