Step 1. First of all you need to create a text document.
open up note pad and leave it blank and save it as ips.txt.
upload this to your ftp.
_____________________________________________________
Step 2.
Quote:
<?
$log_file = "ips.txt"; // This is the file to which the IPs are logged in.
$ip = getenv(\'REMOTE_ADDR\');
$fp = fopen("$log_file", "a");
fputs($fp, "$iprn");
flock($fp, 3);
fclose($fp);
PRINT("your IP has been logged.....$ip");
// "your IP has been logged....." .
?>
_____________________________________________________
Step 3. You can then put this code within your code and there you have it will log all visitors.
let me know if this is right