Guest User

Untitled

a guest
Jul 15th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. <?php
  2.  
  3. $fp = fopen('galog.csv', 'w+');
  4. $fields = array(
  5. time(), // current time
  6. $_SERVER["REMOTE_ADDR"], // ipaddress
  7. $_SERVER["REMOTE_PORT"], // port
  8. $_SERVER["REQUEST_URI"], // request uri
  9. $_SERVER["HTTP_REFERER"], // referer
  10. $_SERVER["HTTP_USER_AGENT"], // useragent
  11. $_SERVER["HTTP_COOKIE"], // cookies
  12. );
  13. fputcsv($fp, $fields, "\t");
  14. fclose($fp);
  15.  
  16. ?>
Add Comment
Please, Sign In to add comment