Hello,
I have a script that lists the contents of a directory. It was
working properly until we had to change the directory that it reads
from.
The path to this script is:
/home/n/mu1/database/refresh.php.
I'd like it to list the contents in the main directory of the site:
mu1
So I have this code to list (up one level from the script):
$path = "../mu1/";
$dir_handle = opendir($path) or die("Unable to open directory $path");
But I get this error message when I try to run it:
Warning: opendir(../mu1/) [function.opendir]: failed to open dir: No
such file or directory in /home/n/mu1/database/refresh.php on line 19
Unable to open directory ../mu1/
Any idea what I'm doing wrong?
Thanks!