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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to