Re: Re: get_browser() too slow
| From: | Nathan Nobbe | Date: | Mon, 22 Dec 2008 21:16:46 +0000 |
| Subject: | Re: Re: get_browser() too slow | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-284977@lists.php.net to get a copy of this message | ||
2008/12/22 Martin Zvarík <mzvarik@gmail.com>
> Martin Zvarík napsal(a):
>
>> Hello,
>> anyone has a good function for getting a user's browser, OS and crawler
>> detection ?
>>
>> I have looked at google etc, but I ran only into long list of ineffective
>> ereg()s functions or not checking if it's crawler...
>>
>> Is it possible to make an array list and just check using strpos() each
>> one?
>> The basic browsers for Win, Mac, and Linux - others would be unknown.
>> And then only to check for OS.
>>
>> I tryed get_browser() but that thing is way too slow for my needs: 0.09
>> sec.
>>
>> Thanks in advance,
>> Martin
>>
>
> Hmm... This one is decent:
>
> http://techpatterns.com/downloads/scripts/browser_detection_php_ar.txt
theres something akin to this in code igniter, though more than likely, its
not as feature rich.
-nathan