RSS
Home
|
Link Us
|
Contact
Categories
-- All --
Perl
PHP
MySQL
Windows
JavaScript
HTML
Apache
CVS
Linux
SEO
Perl (9)
PHP (35)
MySQL (5)
Windows (7)
JavaScript (5)
HTML (6)
Apache (6)
CVS (4)
Linux (13)
SEO (11)
The registration is temporarily disabled.
However you can post your comments without registration.
Authentication
Username:
Password:
Register
|
Lost password
-->
Detect Firefox browser with php script/function
Home
»
PHP
»
Detect Firefox browser with php script/function
Date: 2006-01-27
Detect Firefox browser with php script/function
Download
|
Printer Friendly
Add to Google
Add to Del.icio.us
Add to Digg
Add to Technorati
Add to Yahoo!
Add to Blinklist
Add to Furl
Add to reddit
/** * checks for user agent whether this is firefox or not * @param void * @return bool * @author svetoslavm##gmail.com * @link http://devquickref.com/ */ function is_firefox() { $agent = ''; // old php user agent can be found here if (!empty($HTTP_USER_AGENT)) $agent = $HTTP_USER_AGENT; // newer versions of php do have useragent here. if (empty($agent) && !empty($_SERVER["HTTP_USER_AGENT"])) $agent = $_SERVER["HTTP_USER_AGENT"]; if (!empty($agent) && preg_match("/firefox/si", $agent)) return true; return false; }
Comments
No comments yet.
Post a comment
Your Name
Your Email
(won't be published)
Site
(e.g. http://)
*
Title
*
Comment
*
Required fields.
Copyright © 2005-2008
Execution time: 2.53517
hosted by
1and1