Edward Dias schrieb:
Hi,
I was trying out this sample that Doug sent out and in trying I got this error in return
Parse error: parse error, unexpected '"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\test\superglobals.php on line 4
Is there some configuration that I need to modify?
Here's my code sample:
<?php $result = getenv($_ENV['DOCUMENT_ROOT']); echo "$result"; echo "You are running <b>$_SERVER["PHP_SELF"]</b>.<br /><br />\n"; ?>
TIA Edward
The last echo should be
echo "You are running <b>" . $_SERVER["PHP_SELF"] . "</b>.<br /><br />\n";
Hendrik