Monday, 22 January 2007
Write Server-Side Browser Detection Code in PHP |
| |
|
| |
The phpguru web site has offered up a script to set up browser detection code in PHP. Though this code works on the server side, it closely follows the Ultimate Javascript Client Side Detector.
The writer says the code is simple and hence, it does not pollute the namespace much.
All you need to do is include the code and call the function like so:
The code currently works with browsers, such as IE versions 4 and up, Firefox 1 and 2, Navigator version 2 and up and Opera versions 5 and up.
|
| |
|
Download the Script
|
| |
|
|
| |
|
|
| |
|