RE: [PHP-WIN] Capturing IP Address

From: Date: Wed, 28 Aug 2002 12:44:56 +0000
Subject: RE: [PHP-WIN] Capturing IP Address
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-15564@lists.php.net to get a copy of this message
Sorry. There are a number of arrays in PHP which hold a multitude of values (GET variables, POST variable, SERVER variables etc.) The user's IP address is passed as part of the HTTP request header, and is accessible thru the superglobal array $_SERVER["REMOTE_ADDR"] Ie the address of the remote user, the client who requested the page If you're using a version of PHP < 4.2.0 then you get the same value from $HTTP_SERVER_VARS["REMOTE_ADDR"] HTH, Richy ========================================== Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504 Email: rblack@datavisibility.co.uk -----Original Message----- From: James Meers [mailto:jambo@venda.com] Sent: 28 August 2002 13:36 To: Richard Black; php-windows@lists.php.net Subject: RE: [PHP-WIN] Capturing IP Address Im new to PHP, so I don't know what you mean here? -----Original Message----- From: Richard Black [mailto:rblack@datavisibility.co.uk] Sent: 28 August 2002 13:14 To: James Meers; php-windows@lists.php.net Subject: RE: [PHP-WIN] Capturing IP Address _SERVER["REMOTE_ADDR"] ========================================== Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504 Email: rblack@datavisibility.co.uk -----Original Message----- From: James Meers [mailto:jambo@venda.com] Sent: 28 August 2002 13:06 To: php-windows@lists.php.net Subject: [PHP-WIN] Capturing IP Address How would I capture the IP address of a user coming to my site and then, putting that information into a database? Jambo -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.windows (#15564) next »