...

View Full Version : Getting IP of referrering page



Herz0g
01-15-2010, 11:30 PM
Is there any function or script that can give me the IP address of a referring local page?

Basically something between $_SERVER['HTTP_REFERER'] and $_SERVER['SERVER_ADDR']

Thanks.

Killermud
01-15-2010, 11:56 PM
TRy using the gethostbyname() function.

Example :


echo gethostbyname('google.com');

would give an outcome of 216.239.59.99

Hope this helps!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum