This works on my local win32 apache localhost.
On the windows machine I do this:
$dir = dir("C:/Program Files/Apache Group/Apache/somefolder");
...and...
while($filename = $dir->read()) {bla bla bla}
So my Apache on win32 understands that "C:/Program Files/Apache Group/Apache/somefolder" is NOT on the web but on the server system itself.
The problem is Linux.
The equivalent code there is:
$dir = dir("/home/somefolder");
...and...
while($filename = $dir->read()) {bla bla bla}
Where /home/somefolder is from the machine root not the httpd root.
It is looking for
www.myserver.com/home/somefolder.
How do I prevent the dir() function from starting from the webfolders??