RE: $_SELF[PHP_SELF] not working anymore
| From: | Maria Garcia Suarez | Date: | Tue, 16 Sep 2003 13:51:28 +0000 |
| Subject: | RE: $_SELF[PHP_SELF] not working anymore | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-162750@lists.php.net to get a copy of this message | ||
Hi there!
--- Javier Tacon <javier.tacon@private.com> wrote:
> Try with $_SERVER["PHP_SELF"]
Then I get:
Parse error: parse error, unexpected
T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or
T_VARIABLE or T_NUM_STRING in
This is how I use it:
$currentAddress="$_SERVER[HTTP_HOST]$_SERVER[PHP_SELF]";
Thanks for your reply anyway.
Kisses,
Maria
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com