Chris Schuld's Blog

personal musings on the composition of software

Written By: Chris Schuld Sunday, November 8th, 2009

Version 1.6 of Browser.php has been released with a lot of updates: http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/

Categories: PHP

3 Responses to " Browser.php updated to v1.6 "

  1. Excellent class file. I use it to plot browser statistics on my website (still in development).

  2. Kcko says:

    Cool job. Usefull class file. :)

  3. berdn says:

    Very Usefull, but I have a problem with an iPhone and a iPod Touch:

    ‘Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_1 like Mac OS X; de-de) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7C144 Safari/528.16′

    ‘Mozilla/5.0 (iPod; U; CPU iPhone OS 3_1_2 like Mac OS X; de-de) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7D11 Safari/528.16′

    I change line ’771′ in
    if( preg_match(‘/iPhone/i’,$this->_agent) && preg_match(‘/iPod/i’,$this->_agent) == 0 )

    So it works bether for me

Leave a Reply

About Chris

Chris Schuld

Thank you for visiting my website. I use this site for a myriad of things: maintaining software I have open sourced, connecting with my readers and friends and documenting all of this little things "I wished I would have written down." You can read more about me or contact me.


thanks for visiting... happy coding

Recent Comments