Here is something that I use and works good

<?
$Browser_Type  =  strtok($HTTP_USER_AGENT,  "/"); 
if(ereg( "MSIE",  $HTTP_USER_AGENT))   
{   

} 
elseif(ereg( "Mozilla",  $HTTP_USER_AGENT))
{ 

} 
else // I use this to catch Search Robots
{  

}
?>

Thank You
Brian Paulson
Sr. Web Developer
The Pueblo Chieftain Online
[EMAIL PROTECTED]
http://www.chieftain.com 


> -----Original Message-----
> From: nayco [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, September 11, 2001 9:48 AM
> To: Zhu George-CZZ010; [EMAIL PROTECTED]
> Subject: Re: [PHP] Is it possible to detect the Browser 
> type/version in PHP?
> 
> 
> with some environnement variable ....
> er, i'm going to take a look, wait.
> 
> 
>     (°-        Nayco,
>     //\        [EMAIL PROTECTED]
>     v_/_     http://nayco.free.fr
> 
> 
> ----- Original Message -----
> From: Zhu George-CZZ010 <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, September 11, 2001 5:35 PM
> Subject: [PHP] Is it possible to detect the Browser 
> type/version in PHP?
> 
> 
> > Hi,
> >
> >   I once had the Javascript codes to detect the browser 
> type/version 
> > (but
> unfortunately, I lost the codes), does anyone have the 
> Javascipt code? or can PHP do the same job (how?)
> >
> > Thank you very much in advance.
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED] To 
> > contact the list administrators, e-mail: 
> [EMAIL PROTECTED]
> >
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] To contact the list 
> administrators, e-mail: [EMAIL PROTECTED]
> 
> 
> 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to