Re: superglobals
| From: | Hendrik Schmieder | Date: | Wed, 13 Oct 2004 15:25:27 +0000 |
| Subject: | Re: superglobals | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-14507@lists.php.net to get a copy of this message | ||
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 EdwardThe last echo should be echo "You are running <b>" . $_SERVER["PHP_SELF"] . "</b>.<br /><br />\n"; Hendrik