Project Root Directory
Posted: Wed Feb 04, 2009 9:53 pm
I have a shared hosting plan and do not know much info about server setup. I am looking for a way to set up a project root directory. For example, on my domain in the root level, I have my website, however, I have a directory called "projects" and in here I have individual directories for each project. In these directories is where I do some of my development work. How can I set up a $root variable in each of these directories so that I can reference things only in that directory?
Something globally has to be set somewhere. I've googled and found suggestions, for how to get what directory I am in and such, however I don't see the purpose in this because the code people are suggesting would have to be on a file somewhere, thus I would need to call this file somehow (ie. ../config.php, ../../../config.php, ../../../../../../../config.php). Please help!
Thanx in advance.
Something globally has to be set somewhere. I've googled and found suggestions, for how to get what directory I am in and such, however I don't see the purpose in this because the code people are suggesting would have to be on a file somewhere, thus I would need to call this file somehow (ie. ../config.php, ../../../config.php, ../../../../../../../config.php). Please help!
Thanx in advance.