Re: [PHP] reverse DNS lookup with PHP

2003-06-15 Thread John W. Holmes
Tim Thorburn wrote: I'm setting up a simple tracking program for a website I'm working on. Currently it records a visitors IP address, but I would like to be able to do a DNS lookup of these IP addresses. Is this possible with PHP and if so, how is it done? I've been looking through Google,

[PHP] reverse DNS lookup with PHP

2003-06-14 Thread Tim Thorburn
Hi, I'm setting up a simple tracking program for a website I'm working on. Currently it records a visitors IP address, but I would like to be able to do a DNS lookup of these IP addresses. Is this possible with PHP and if so, how is it done? I've been looking through Google, and the very

Re: [PHP] reverse DNS lookup with PHP

2003-06-14 Thread Tom Ray [Lists]
$_SERVER[REMOTE_HOST]; This will do a reverse lookup on their IP. Manual Link: http://ca3.php.net/manual/en/reserved.variables.php#reserved.variables.server Hope it helps Tim Thorburn wrote: Hi, I'm setting up a simple tracking program for a website I'm working on. Currently it records a

Re: [PHP] reverse DNS lookup with PHP

2003-06-14 Thread Lars Torben Wilson
On Sat, 2003-06-14 at 14:38, Tom Ray [Lists] wrote: $_SERVER[REMOTE_HOST]; This will do a reverse lookup on their IP. Manual Link: http://ca3.php.net/manual/en/reserved.variables.php#reserved.variables.server Actually, this isn't true. $_SERVER['REMOTE_HOST'] will contain the hostname of