I have been looking for a reliable way to have (at least the less obscure ones) :
I want to display a custom content according to these information, example :
If the user wants to know how to clear the cookies on his browser. Let's say i have many contents already available for many browser. versions And i want to load the appropriate content automatically
Is there a way not involving Javascript to get these values?
I have use cases where the browser is not found or inaccurate. So i would like to have the most reliable solution.
Here are 2 websites that does exactly what i need :
Other link with partial solutions:
Spent many days trying, seaching, but to no success. I found many hints from Stackoverflow community:
Other useful links :
EDIT 1 So far i have tested the answers and comments. These solutions are very satisfying:
WURFL less recent but very good also. (thanks to @Ian Roberts)
EDIT 2 PHP mobile detect uses WURFL
UPDATE
Make sure that the header you receive are not modified by any other library.
For example some security libraries like OWASP PhpSec [ABANDONED] change the header structure into a custom object and PHP mobile detect doesn't have access to all the information it needs anymore
For those of you using OWASP PhpSec [ABANDONED] the http library is modifying the global header object structure. (December 2013) So if you have issues just use PHP mobile detect before you include any OWASP PhpSec class using the http library
Have you considered WURFL? Its main aim is to classify mobile device browsers but it claims to have a mode that identifies desktop ones too.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With