get_browser() too slow
| From: | Martin Zvarík | Date: | Mon, 22 Dec 2008 20:57:55 +0000 |
| Subject: | get_browser() too slow | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-284974@lists.php.net to get a copy of this message | ||
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