Re: REMOTE_ADDR probs
| From: | Michael Sims | Date: | Tue, 12 Feb 2002 00:51:22 +0000 |
| Subject: | Re: REMOTE_ADDR probs | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-84332@lists.php.net to get a copy of this message | ||
At 09:41 AM 2/11/2002 -0600, cyberskydive wrote:
$user = getenv('REMOTE_ADDR'); [...]
It works great on windows running apache php 4.0.1 but on solaris php 4.06 if I add a print($first); it returns the servers IP address, but everywhere else it returns the users IP address.On the Solaris machine, are you running PHP as an Apache module or as a CGI? Check the output of phpinfo() on your solaris machine...see if using $HTTP_SERVER_VARS["REMOTE_ADDR"] or $HTTP_ENV_VARS["REMOTE_ADDR"] give you the expected results...