How can constants be defined once and reused through all files?
<p>I'm trying to set up a site that has many reusable headers/footers, style information, etc. Is there anyway to define a global constant/function that can be reused from any file without having to try to navigate directories each time?</p>

<p>Something like</p>

<pre><code>&lt;html&gt;
&lt;?
    includeAll(); // Would include the necessary files, no matter what directory runs the script
    header(); // Would print the reused &lt;head&gt; information
?&gt;
&lt;body&gt;
...
    &lt;? footer(); ?&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>I do not have access to the php.ini or any other server configuration options.</p>

<pre><code>require_once($_SERVER['DOCUMENT_ROOT'] . "/path/to/script");
</code></pre>

<p>Does not work either as the $_SERVER super global returns a locked directory on the server, not the root site directory.</p>

<p>Do I have any options?</p>
