Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php date_default_timezone_set("Europe/Berlin");
- $filename = 'ips.log';
- $file = 'ips.log';
- $current = file_get_contents($file);
- $current = "IP: " .$_SERVER["REMOTE_ADDR"]. " | Operating System: " .$_SERVER["HTTP_USER_AGENT"]. " | Date: ".date("Y.m.d"). " | Time: " .date("H:i:sa"). "\n";
- file_put_contents($file, $current, FILE_APPEND);
- ?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement