View Full Version : Getting IP of referrering page

01-15-2010, 10: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']


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

Example :

echo gethostbyname('google.com');

would give an outcome of

Hope this helps!

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum