Detect browser and OS with PHP.?

  • Thread starter Thread starter Aaron
  • Start date Start date
A

Aaron

Guest
I need a php that detects what browser the user is using to view my web page. I need it to detect. Internet explorer, Firefox, Safari, Opera, Chrome and others. I don't need the version number.

I want it also to detect the Operating system of the user. I don't need to know exactly what OS it is.

I prefer that it will give me the complete name of the Browser and OS.

For example. If the user is viewing the web page using Firefox 3 on windows xp, what I need this:

Windows
Firefox

The OS that I need to detect are: Windows, Mac, Linux and Others

What I mean with others is if the user is not using none of the Browsers or OS of the list.

Please return the value in two separate variables. One for the browser and one for the OS.

I need it in php not in javascript

I don't have alot of expirience with php
 
Back
Top