php declaring application root
<p>I have a little problem: I began a project as a subdirectory in a larger web project. Thus the web file path is something like /../myProject. But things have progressed and I've realized that this should be its own project. However, I'd like to be able to keep it where it (as a sub-directory) also make it a sub-domain wherein <code>myProject</code> becomes the root. (There is also the possibility that my project will be mirrored at a library site, where it will once be in a sub-directory). </p>

<p>The problem I having with all this is that in some cases I have <code>html_partial files</code>, (for instance for the header or footer). But the relative path of these partials differs depending on where you are in the file tree. I originally solved this by always going back to the root.</p>

<p>But now, you see, depending on where my project lives, the root will be different. What I'd like to do is declare myProject as the "application root" and then be able to use relative paths based on this <code>application</code> root rather the than the <code>web root'. This way, all of the relative paths within 'myProject' will work no matter where</code>myProject` lives in the web path.</p>

<p>Does PHP have a way to declare something like an <code>Application Root</code> if so, can you explain it me or direct me to its documentation. Thanks!</p>
