How to get the HTTP_USER_AGENT information in PHP

1 Answer

0 votes
echo "<pre>";
echo $_SERVER['HTTP_USER_AGENT'];
echo "</pre>"


/*
run:

Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; 
...

*/

 



answered Jun 20, 2016 by avibootz

Related questions

1 answer 87 views
1 answer 190 views
1 answer 222 views
1 answer 196 views
...