How come this piece of code will list the files and folders fine when using:
But when this piece is run, all I get is a blank white page with no listings of the files and folders:
The difference between the two codes is the folder path, one is inside the httpdoc and the other one is one folder back.
I have full root access to the server to make any changes. Any advice and help to fix this problem will be appreciated.