Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 27th, 2011  |  syntax: None  |  size: 0.21 KB  |  views: 49  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. ?>
clone this paste RAW Paste Data