I’m trying to write a function, which will execute on user login. It should get the browser, OS, resolution and time currently on user’s PC?
Is it even possible to obtain such info and how?
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.
source1
There are other parameters in $_SERVER super global variable that you might find helpful as well such as time info. check for that here
GetDate() for getting date
source2
Updated Answer
You cannot get browser time from PHP because PHP runs on the server. It knows nothing about client and is completely ignorant of client time. But you can use JavaScript inside PHP and hack the browser time, like this
More on this on sitepoint