TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Absolute Beginners (http://www.talkphp.com/absolute-beginners/)
-   -   Browser Detection (http://www.talkphp.com/absolute-beginners/2887-browser-detection.html)

StevenF 06-03-2008 01:38 PM

Browser Detection
 
Hi everyone,

What ways are there to detect what browser is being used? I would like to execute different PHP code depending on weather the user is using Intermet Explorer or FireFox.

Cheers,
Steven

Ross 06-03-2008 01:47 PM

The easiest method is to use a function called get_browser.

StevenF 06-03-2008 02:04 PM

Thanks for that, found an example on there - thanks again.

Wildhoney 06-03-2008 03:30 PM

Just remember that such information is not always available. Don't rely on it too much, and default to something else if it's not available.


All times are GMT. The time now is 02:14 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0