Try: $ip=$_SERVER['REMOTE_ADDR'] -----Original Message----- From: Webmaster MBTRADINGCO [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 1:08 PM To: [EMAIL PROTECTED] Subject: [PHP] Getting users IP address into a variable.
I'm sure there has to be a way to verify which IP address is accessing from. I need to establish a page where when I enter it records the IP address I'm logging in from, to a database. Problem is I can't seem a command in php that can assign that to a variable, as in: $ip=HTTP_GET_???? ANY IDEAS???? Thanks Elliot J. Balanza -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ************************************************************************************************** Any views, opinions or authorizations contained in this email are solely those of the author and do not necessarily represent those of ArvinMeritor, Inc. If you are not familiar with the corporate authority of the author, please obtain confirmation in writing of the content of this email prior to taking any action on the basis of the information. If you are not the intended recipient, you are hereby notified that any disclosure, copying or distribution of the information enclosed is strictly prohibited. ************************************************************************************************** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php