trace ip

A

Anonymous

Guest
Hi guys,

I heard that php can be used to trace ip of the person who visit your website or capture their ip when they sign in,,

can u guys give me an idea how to do that and what function i can use.

Please advise.
 
read about
$_SERVER[]
this array gives you many information about ip,browsing agen,operating system...etc
open your phpinfo page for more information
Code:
<?
phpinfo();
?>
 
Check this

Code:
echo ($_SERVER['REMOTE_ADDR']);

this will print the remote or the client ip visiting the page
 
Back
Top