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... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php