Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. <?php date_default_timezone_set("Europe/Berlin");
  2. $filename = 'ips.log';
  3. $file = 'ips.log';
  4. $current = file_get_contents($file);
  5. $current = "IP: " .$_SERVER["REMOTE_ADDR"]. " | Operating System: " .$_SERVER["HTTP_USER_AGENT"]. " | Date: ".date("Y.m.d"). " | Time: " .date("H:i:sa"). "\n";
  6. file_put_contents($file, $current, FILE_APPEND);
  7.  
  8. ?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement