Advertisement
RokiAdhytama

IP Logger

May 8th, 2019
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. <?php
  2.  
  3. $ip = $_SERVER['REMOTE_ADDR'];
  4. $useragent = $_SERVER['HTTP_USER_AGENT'];
  5. // Nama File
  6. $result = fopen('result.txt', 'a');
  7. // Isi File
  8. $isi = "
  9. IP : $ip
  10. User Agent : $useragent
  11. ";
  12. fwrite($result, $isi);
  13. fclose($result);
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement