I know I can get the user ip:
$_SERVER[‘HTTP_CLIENT_IP’];
the user user’s agent:
$_SERVER[‘HTTP_USER_AGENT’];
What else information can I get from the user from a normal http request? Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you use
phpinfo()on a test page, you can see the values that will get back for your current webserver. The results different from server to server but should be consistent on your server. You are best to Google the names too, to see their exact purpose and meaning.You can also use
print_r($_SERVER);to list the server variables specifically.