PHP error is_readable but opendir works

Basically what he says on tin:

if(is_dir($dir))
    echo $dir . " is a directory\n";

if(is_readable($dir))
    echo $dir . " is readable\n";

if($this->handle = opendir($dir))
    echo $dir . " opened\n";

Return:

\\ HTPC \ MOVIES is a directory

\\ HTPC \ MOVIES is open

What is strange? I can iterate over files in a directory, but apparently it is not readable. It doesn't make any difference, as if I said I can still read the files, but I'm just a little weird.

Does anyone have any thoughts?

+5
source share
2 answers

, . . . is_readable true. , opendir true, is_readable . -, .

.

+3

, , - .

, , acl, .

ACL , .

0
source

All Articles