Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $ip = $_SERVER['REMOTE_ADDR'];
- date_default_timezone_get();
- $date = date('m/d/Y h:i:s a', time());
- $useragent = $_SERVER ['HTTP_USER_AGENT'];
- $msg = "
- ################BROWSER AND LOCATION DETAILS############
- IP : $ip
- UA : $useragent
- DATE:$date
- ##################################################
- ==================================";
- $file = fopen("visitors.txt", 'a');
- fwrite($file, $msg);
- ?>
Add Comment
Please, Sign In to add comment