Hi,
I posted earlier, but didn't know how to incorporate new code into my code, so I'll ask my question again, hoping someone will please help me code it (thank you in advance!):
Currently I have a browser check (my code is below), but what I want is the most optimized code for a "return = true" for:
Netscape 4 or greater on MACINTOSH ONLY
IE version 3 or greater on ANY platform
and a "return = false" for everything else
(such as Netscape on a PC, or Netscape 3 on a Mac, or IE older than version 3 on any platform, and other browsers such as Opera and ICab, etc.)
Thank you!!!
existing code:
<?php
function find_browser()
{ global $HTTP_USER_AGENT; if(count($match_array) > 0)
{ foreach($match_array as $b)
{ if($b < 3) { return false; }
if(!ereg(\"(IE|Netscape)\",$HTTP_USER_AGENT)) { return false; }
} return true;
} else {
return false; }}{
?php>