Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: open
However, there is no such thing as an "optimized" script for your needs. Do you need to recognize all browsers? Well, then it's important that many common browsers can identify themselves as any browser.
Browser sniffing is seldom very reliable. If possible, try to avoid it.