Be warned that this will return the IP of any proxy or cacheing server being
used. If that is the case then you can also check
$_SERVER['HTTP_X_FORWARDED_FOR'] for the client IP address and this may also
contain multiple comma separated addresses...

Rich
-----Original Message-----
From: Richard Black [mailto:[EMAIL PROTECTED]]
Sent: 28 August 2002 13:14
To: 'James Meers'; [EMAIL PROTECTED]
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: [EMAIL PROTECTED]

-----Original Message-----
From: James Meers [mailto:[EMAIL PROTECTED]]
Sent: 28 August 2002 13:06
To: [EMAIL PROTECTED]
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


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to