Scripts — Browser & OS Detection — Javascript & PHP

Welcome to our PHP and Javascript browser detection script download area. We hope these scripts will be useful to you, especially given how problematic some CSS can be in terms of cross browser solutions and debugging.

Your Computer Box

We've been asked how to implement the "Your Computer Information" box on this page, so we put it in a script.

Download: 'Your Computer' Box Script
Current Version: 1.3.4
File Last Modified: February 16, 2014. 18:02:39 pm

This script is a simplified version of the one to your left, for easy use.

PHP Language Detection

NEW! - PHP system language detection script. Check it out if that's something you need for your site.

Your Computer

Operating System:

Windows
NT (version unknown)

Current Browser / UA:

User Agent: Applewebkit 537.36
Layout Engine: Webkit
Engine Version: 537.36

HTML Support

HTML 5 Basic: Good
HTML 5 Forms: Good
XHTML: No

JavaScript

PHP Browser Detection

Run Time: 0.00006795 Seconds

All scripts have been thoroughly tested, although of course no script is ever perfect, so they will be modified as time goes by. There is a 'last modified by' date scripted in next to each download so you can see if it has changed from the version you have. If you find any bugs or detection failures, please post them in our web programming forum. If you do find something wrong with one, and we'll get it fixed.

Some of the Browser Detector Scripts also include OS detection, the PHP browser detector is much more complex than the Javascript browser detectors, and includes Unix, Linux, and Mac OS X, along with Windows NT and 9x detection.

[ the browser detector to your left is running off of the PHP browser detection script, which is far more powerful than the javascript version, although both do their jobs well ]


Please Link to our Site

It would really help us out, and help other people find this information, if you could add a link to our site in exchange for these scripts. Thanks.

<a href = "http://techpatterns.com/downloads/php_browser_detection.php"> PHP Browser Detection</a>

The Navigator User Agent

User Agent List

If you need a list of user agents, try this one or this one. There's also a very nicely done useragent list on here.

All browser detector scripts use the browser Navigator Agent provided by the browser. If this is modified or missing, there is no way for anyone to detect what browser you are using. Fortunately, only geeks think it's cool to modify their navigator user agent strings. Most people, the overwhelming majority of your site's visitors, have no idea such a thing even exist, so you should in general be in good shape.

Navigator User Agent strings look like this, all browsers and spiders have some version of them. In this case the browser is Mozilla Firebird 0.7 running on Windows 2000 Operating system:

Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 Firebird/0.7

This is your browser useragent string:

Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)

top

Manual Downloads

If you're in rush, you can grab the scripts here [ but we recommend that you check out the Javascript browser detector and PHP browser detector pages first for more information ]:


Site Information

W3C Validation:

XHTML CSS

Site hosted by:

pair
networks

Site Features

Utilities

Javascript Browser Test

Download Notes

Generic programs like MS Notepad will not open these downloaded text files correctly.

Please use your text editor (for example, our personal favorite, EditPlus, or HTML-Kit, BB edit, etc. to open them.

If you just want to take a look at them in your browser, go to the bottom of the page and click the Manual Download links.