SHARE
TWEET

Untitled

a guest Jun 27th, 2011 51 Never
  1. <?php
  2. $ip = $_SERVER['REMOTE_ADDR'];
  3. $dt = date("l dS \of F Y h:i:s A");
  4. $file=fopen("ip_log.txt","a");
  5. $data = $ip.' '.$dt."\n";
  6. fwrite($file, $data);
  7. fclose($file);
  8. header( 'Location: http://www.xat.com' ) ;
  9. ?>
RAW Paste Data
Top