scandir() permissions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux