Ok, so lets say I include in my index.php file, which is in the document root directory, the file 'song_admin.php' , which is in the directory 'modules/songs'. This included file, calls up several other files for various library functions, for the module, and may have a form inside of it, which gets submitted as an action to a php script in the 'modules/songs' directory, which, upon conclusion of the action, needs to call back the main index file to run, which of course has various session variable passed among them. DOes the relative path end up changing on me when I do these various includes, which call up different scripts, and then call back the index file? I hope this doesn't confuse anyone, but, I am really trying to get this mess of functions organized out. The scripts are all working correctly in the root directory, but when I did move them into the 'modules/songs' directory, I called all the includes that were in that directory as direct paths, and tried to call back the 'index.php' file form a relative path, but I fear I misused the syntax. What would be the correct syntax to use, to call back the index file, the '$_SERVER['DOCUMENT_ROOT']'?
I am trying to understand how the paths need to work, as scrupul0us mentioned,
'however, anything included inside that module must be set relative:'
The paths I need to specify seems to change depending upon what file I am in at the time. I am so confused.
Ice