/ Published in: PHP
This handy little script will allow you to detect whether or not a user is running FireFox as their browser.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function is_firefox() { $agent = ''; // old php user agent can be found here $agent = $HTTP_USER_AGENT; // newer versions of php do have useragent here. $agent = $_SERVER["HTTP_USER_AGENT"]; return true; return false; }
URL: http://www.aristoworks.com