php browser information and operating system

0

I need a help with some library that detects the operating system and the browser used by the client, I searched a lot on the net and found nothing worthwhile, just a bunch of code tangle that returns nothing!

Just a library that I found, and even now it seems to be more complete, but I could not load it at all, could anyone help me please?

Device-detector

    
asked by anonymous 11.01.2017 / 10:59

1 answer

2

According to this article , you just need to get it the $_SERVER['HTTP_USER_AGENT']; .

To display the browser or operating system name more readable, it compares the received value with its own array using regex. So instead of displaying '/ netscape /' will display 'Netscape'.

link

    
11.01.2017 / 12:14