Won't work. You come from a JS background, I assume? PHP is server side. You might accomplish what you want by calling 'window.location("http://mysite.com/foo.php?inc=text1.inc")' or somesuch based on the ouput of the browserName variable, but I'm no Javascript expert.
PHP browser recognition would be more like:
if (stristr($_SERVER['HTTP_USER_AGENT'],"MSIE")) {
echo "Why not switch to Firefox??";
} else {
echo "I see you've been enlightened!";
}
😃
Try a test page that prints the value of the HTTP_USER_AGENT variable, and try it from different browsers; or, just check your server access logs. Apache, at least, lists this information with each logged request.
HTH,