superglobal failure

dear all,
here is all of the “well.php”
[php] <?php echo $_SERVER['document_root'];?>[/php]
the file sits in /srv/www/example.net/public_html/yank
and yields no result whatsoever.
What’s wrong?

yours`
sehrguey

[php]<?php echo $_SERVER[document_root];?>[/php]
try that.

It’s case-sensitive:

[php] <?php echo $_SERVER['DOCUMENT_ROOT'];?>[/php]

$_SERVER in the manual.

dear cogga28,
thanks for your nice intentions…

jSherz,
you’re de man!! It works now, thank you ever so much.

yours`
sehrguey

Sponsor our Newsletter | Privacy Policy | Terms of Service