Web Hosting Talk







View Full Version : php directory listings


keyDet79
01-19-2004, 11:29 AM
One of my customers keeps getting the following errors on a server with phpsuexec enabled:

Warning: readdir(): supplied argument is not a valid Directory resource in <path to script>
Warning: closedir(): supplied argument is not a valid Directory resource in <path to script>

The coder of the script replied:

The chmoding is fine now. The current problem is that his security script indiscriminately disallows directory listings (which the script uses for dynamically finding files for various tasks). Ask him to set it to allow directory listings within one's own public folders.

So, is php suexec disallowing this guy to do this? How can this be changed? It's a cPanel server.

blessen
01-20-2004, 12:57 AM
Pleae make sure that the path provided in the config.php or any corresponding config file should be actual path, not the relative path.

Steven
01-20-2004, 01:05 AM
got mod_security installed?