Quote:
Originally posted by k_day64
I dont like the thought of ppl knowing my dir structure becasue it is based of the FTP users and I dont want their logins know.
~k_day64
|
You can use PHP's directory functions to open any directory that the webserver user has read access to, including dirs outside of the web root. Open a directory, get a listing of files, then return that listing without naming the directory. If you're worried about your interpreter going belly up and spewing out your raw code (with file paths and all), you can also put your directory parsing functions in a file outside of your web root and "include" that file in your script. Even if your PHP code is readable, they'll get no directory names.
Hopefully I understood your concerns and this advice is helpful.