View Single Post
Old 01-04-2007, 02:27 PM   #3 (permalink)
ryno
 
Newb Techie

Join Date: Jan 2007

Posts: 25

ryno

Default

Lets see. My php is a little rusty, but I think the following might do what you need.

$strHost = gethostbyaddr($_SERVER['REMOTE_ADDR']);

In my case, this would return something like...

UNIQUEHASH-UNIQUEHASH.cpe.net.cable.rogers.com

I would imagine what you want is just the rogers or the rogers.com. You can perform some string manipulation functions on $strHost to retrieve that.
ryno is offline