A
Anonymous
Guest
Hi,
How can I get IP address of a client that logged in into my site?
thanks,
webtekie
How can I get IP address of a client that logged in into my site?
thanks,
webtekie
sleepingdanny said:You can use this code: :arrow:
$file="Path To Log File"; #/home/site.com/...
$fp=fopen($file,'a') or die("Couldn't Log!");
fputs($fp,"$REMOTE_ADDR\n");
fclose($fp);
It will open the log file and will add the visitor IP address to it.
If you'll do what Andrew suggested you will only see your own IP address. :roll: