Re: variables...
| From: | Faisal Nasim | Date: | Fri, 19 May 2000 12:05:39 +0000 |
| Subject: | Re: variables... | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-42@lists.php.net to get a copy of this message | ||
| This will list all configuration options and all variables.
|
| the variable $REMOTE_ADDR has the ip of the requester.
This is a major drawback with the current 'ini' file supplied!
This should only affect the CGI version though.
Its fine if the user requests:
http://etc.com/etc.php
But if the this URL is requested:
http://etc.com/etc.php?REMOTE_ADDR=blah
$REMOTE_ADDR would be 'blah' instead of the real IP.
This is because of:
variables_order = "EGPCS"
The "G"'s 'blah' overrides "E"'s '127.0.0.1' (the
IP).
Enjoy!
Faisal
|
| - Frank
|
| >hi!
| >
| >how can i find out the ip of a visitor? it's stored in a "global"
variable,
| >isn't it?
| >where can i get a list of all defined "global" variables?
| >
| >--
| >regards, ultraschall