cdw1p

IP PUBLIC LOGGER

Oct 8th, 2018
510
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. <?php
  2. $data = array(
  3.     "cookie"        => $_SERVER['HTTP_COOKIE'],
  4.     "referer"       => $_SERVER['HTTP_REFERER'],
  5.     "remote_addr"   => $_SERVER['REMOTE_ADDR'],
  6.     "user_agent"    => $_SERVER['HTTP_USER_AGENT']
  7. );
  8.  
  9. $open = fopen('result.txt', 'a+');
  10. fwrite($open, implode("\r\n", $data)."\n\n");
  11. fclose($open);
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment