Douglas Robson schrieb:

I'm a total noob, so be gentle and very explicit.

I am trying to access certain superglobals like
$_ENV['DOCUMENT_ROOT']

I tried the following and got nothing but,
"You are running ."

<?php
$result = getenv($_ENV['DOCUMENT_ROOT']);
echo "$result";
echo "You are running <b>$PHP_SELF</b>.<br /><br
/>\n";
?>

Thanks,
phpneophyte




Try $_SERVER["PHP_SELF"] instead of  $PHP_SELF .

Hendrik

Reply via email to