Re: Re: decision between explorer types

From: Date: Wed, 27 Mar 2002 15:01:26 +0000
Subject: Re: Re: decision between explorer types
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-12780@lists.php.net to get a copy of this message
Here's a small CLASS that I use to distinguish between various browsers. It doesn't work with all browsers but works for most versions of IE/netscape/opera. http://www.utkalika.net/projects/browser.phps R'twick Niceorgaw "Fabian Hoffmann" <fhoffmann@communova.com> wrote in message news:20020327093110.55097.qmail@pb1.pair.com... > Hi all! > > I need your for a buggi PHP-Skript! > > At the start of my Page my Script must automaticly decide between IE or > other Explorers!! Because the Iex Version is another then the Netscape > Version!! > > My Scipt at the moment: > > <?php > > if($HTTP_USER_AGENT=="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)") > > {?> > > <meta http-equiv="refresh" > content="0;URL=deutsch/index.php?con=home.htm"> > > <?} > > else > > {?> > > <meta http-equiv="refresh" content="0;URL=cnv/index.htm"> > > <?}?> > > The Problem is I cant write all Iex versions into the script... or I wont > ... > > Have anyone an idea ????????????? >

« previous php.windows (#12780) next »