Menu
I am trying to use scandir to list the contents of a folder somewhere else on the server.
The only way that I have been able to get this to work is with an absolute path from the linux root ie: /mnt/path/to/folder
I want to be able to use a path starting from the root of my domain name ie:
/directory_containing_index.php/otherfolder/otherfolder
so that the script will easily be able to be moved or used on any website any where without manual modification of the script.
Does anyone know what I need to do to get this to work?
I can provide my script if that helps. I figured it wasn’t necessary though.