Rabu, 12 Mei 2010

record alamat IP yang dateng ke web kita

simpel aje... pake php...

ni skrip nya :)


$logfile= 'hasil.html';
$IP = $_SERVER['REMOTE_ADDR'];
$logdetails= date("F j, Y, g:i a") . ': ' . ''.$_SERVER['REMOTE_ADDR'].'';
$fp = fopen($logfile, "a");
fwrite($fp, $logdetails);
fwrite($fp, "
");
fclose($fp);
?>

CREDIT BWAT

SUHU MASTER PHP KITA....
ALMUSTAPA GUSTAR!!

Tidak ada komentar:

Posting Komentar

 
;