Guest User

Untitled

a guest
Jul 19th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. <?php
  2.  
  3. $ip = $_SERVER['REMOTE_ADDR'];
  4. date_default_timezone_get();
  5. $date = date('m/d/Y h:i:s a', time());
  6. $useragent = $_SERVER ['HTTP_USER_AGENT'];
  7.  
  8. $msg = "
  9.  
  10. ################BROWSER AND LOCATION DETAILS############
  11. IP : $ip
  12. UA : $useragent
  13. DATE:$date
  14. ##################################################
  15. ==================================";
  16. $file = fopen("visitors.txt", 'a');
  17. fwrite($file, $msg);
  18.  
  19. ?>
Add Comment
Please, Sign In to add comment