Forum Moderators: coopster
As was stated, you are likely using the incorrect $_SERVER index. Remember you can always dump the $_SERVER [php.net] variable to the browser to have a look at what is available ...
<pre>
<?php
print_r($_SERVER);
>?
</pre>
DOCUMENT_ROOT