How to track website visitor’s IP address using PHP
You can using the following code to obtain visitor’s IP address. Following the code you can output to a flat log file or insert into a database table.
$ip=$_SERVER['REMOTE_ADDR'];
Log in to answer.
smallwei 5:18 pm on November 22, 2009
You can using the following code to obtain visitor’s IP address.
Following the code you can output to a flat log file or insert into a database table.
$ip=$_SERVER['REMOTE_ADDR'];