PHP $_SERVER['DOCUMENT_ROOT'] is empty when called from a Cron Tab
<p>When I use the following code:</p>

<pre><code>&lt;?
print_r($_SERVER);
?&gt;
</code></pre>

<p>I get a nice list off all server variables. However, when I enter the same code in a script, that is being called by a Cron Tab, a lot of variables are not listed. Also, the Document_root variable has no value.</p>

<p>I only have had this issue after moving to a different server. Do I need to tweak some server settings to avoid this?</p>
