Re: $PHP_SELF
| From: | elias | Date: | Sat, 31 Mar 2001 20:10:45 +0000 |
| Subject: | Re: $PHP_SELF | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-46439@lists.php.net to get a copy of this message | ||
please try this:
<pre>
<?
/*
Tells whether or not to register the EGPCS (Environment, GET, POST, Cookie,
Server) variables as global variables. You may want to turn this off if you
don't want to clutter your scripts' global scope with user data. This makes
the most sense when coupled with track_vars - in which case you can access
all of the EGPCS variables through the $HTTP_ENV_VARS, $HTTP_GET_VARS,
$HTTP_POST_VARS, $HTTP_COOKIE_VARS, and $HTTP_SERVER_VARS arrays in the
global scope.
*/
var_dump($HTTP_ENV_VARS);
?>
</pre>
<br>
<?
echo $HTTP_ENV_VARS["SCRIPT_NAME"];
?>
<br>
""Steve Haemelinck"" <steve.haemelinck@pandora.be> wrote in message
news:000401c0b9bb$4aaa1fa0$0200a8c0@shaemeli...
> Anybody got an idea why $PHP_SELF isn't working with me?
>
> I think because I have set my register_globals to off, but how can I get
the
> value of $PHP_SELF an another way ?
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>