RE: [PHP-DB] IP Address?

From: Date: Fri, 19 Apr 2002 20:43:11 +0000
Subject: RE: [PHP-DB] IP Address?
Groups: php.db 
Request: Send a blank email to php-db+get-18684@lists.php.net to get a copy of this message
<? phpinfo(); ?> should give you all of the info you need. Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -----Original Message----- From: Rob Day [mailto:rday@tsl.state.tx.us] Sent: Friday, April 19, 2002 9:29 PM To: 'Craig Vincent'; php-db@lists.php.net Subject: RE: [PHP-DB] IP Address? Thanks, Craig. That was exactly what I was looking for! -Rob -----Original Message----- From: Craig Vincent [mailto:2bunnyhop@rogers.com] Sent: Friday, April 19, 2002 2:35 PM To: Rob Day; php-db@lists.php.net Subject: RE: [PHP-DB] IP Address? > How can I find out the IP address of the client requesting a > given php file? > I know that you can use $HTTP_SERVER_VARS["REMOTE_ADDR"] in more recent > versions of PHP. Unfortunately, we only have PHP3.0.14 and I don't think > that this option is available in our ancient version. I also can't use > server side includes. An upgrade to PHP4 is in the works, but I can't wait > that long. How can I get a client's IP address with PHP3.014 and/or > JavaScript? Thanks in advance. I believe $ip = getenv('REMOTE_ADDR'); will do what you want. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.db (#18684) next »