RE: [PHP] Is it possible to detect the Browser type/version in PHP?

From: Date: Tue, 11 Sep 2001 16:39:18 +0000
Subject: RE: [PHP] Is it possible to detect the Browser type/version in PHP?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66945@lists.php.net to get a copy of this message
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 bpaulson@chieftain.com http://www.chieftain.com > -----Original Message----- > From: nayco [mailto:nayco@netcourrier.com] > Sent: Tuesday, September 11, 2001 9:48 AM > To: Zhu George-CZZ010; php-general@lists.php.net > 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, > //\ Nayco@netcourrier.com > v_/_ http://nayco.free.fr > > > ----- Original Message ----- > From: Zhu George-CZZ010 <George.Z.Zhu@motorola.com> > To: <php-general@lists.php.net> > 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: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net To > > contact the list administrators, e-mail: > php-list-admin@lists.php.net > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: > php-general-help@lists.php.net To contact the list > administrators, e-mail: php-list-admin@lists.php.net > > >

« previous php.general (#66945) next »