Hallo.
I have a problem with the functions readdir or scandir.When using one of the above mentioned functions, I can only get the content of the directory where the php file is located.As soon as I change the path to another directory I get nothing.No error message, I just get an empty page. Thats all.
This is the script I´m using. Nothing special.
<?
if ($handle = opendir('Users/ryoushi/'))
{
echo "Files:<br>";
while (false != ($file = readdir($handle)))
{
if ($file != "." && $file != ".." && is_dir($file))
{
echo "$file<br>";
}
}
closedir($handle);
}
?>
Perhaps it´s an stupid mistake, but right now I don´t know what to do.
Hope someone can help me out.
Thx in advance