S
s0ft4u
Thành viên VIP
Member
bạn lưu đoạn này vào trước <?php index.php
sau đó lạo file ip_log.txt và request để xem
trên là dạng lưu IP .
còn ko thì bạn có thể tạo riêng nó ra thành 1 file php và includes
HTML:
$ip = $_SERVER['REMOTE_ADDR'];
$dt = date("l dS \of F Y h:i:s A");
$file=fopen("ip_log.txt","a");
$data = $ip.' '.$dt."\n";
fwrite($file, $data);
fclose($file);
header( 'Location: http://www.google.com' ) ;
sau đó lạo file ip_log.txt và request để xem
trên là dạng lưu IP .
còn ko thì bạn có thể tạo riêng nó ra thành 1 file php và includes
HTML:
$ip = $_SERVER['REMOTE_ADDR'];
$dt = date("l dS \of F Y h:i:s A");
$file=fopen("ip_log.txt","a");
$data = $ip.' '.$dt."\n";
fwrite($file, $data);
fclose($file);
header( 'Location: http://www.google.com' ) ;