Re: checking for IE or netscape so I can put out the right style sheet

From: Date: Tue, 07 Nov 2000 20:24:50 +0000
Subject: Re: checking for IE or netscape so I can put out the right style sheet
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-24183@lists.php.net to get a copy of this message
I usually do this checking manually, so that I have exactly whet I want, but this may be of use to you, and it is done already: http://php.net/manual/function.get-browser.php -jeremy brand http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more --------------------------------------------------------------------- We cannot do everything at once, but we can do something at once. -- Calvin Coolidge On Wed, 8 Nov 2000, Jim Carey wrote: > Date: Wed, 8 Nov 2000 07:16:09 +1100 > From: Jim Carey <ozbcoz@optushome.com.au> > To: PHP GENERAL LIST <php-general@lists.php.net> > Subject: [PHP] checking for IE or netscape so I can put out the right style sheet > > I've found that fonts from my page appear smaller on Netscape than IE - so I > would like to test for IE or Netscape and put out the right Link statement > depending upon which browser - sort of: > > if ($browser == "IE) > { > echo "<LINK REL=Stylesheet HREF="/css/genIE.css" TYPE="text/css" > MEDIA=screen>\n"; > } > else > { > echo "<LINK REL=Stylesheet HREF="/css/genNS.css" TYPE="text/css" > MEDIA=screen>\n"; > } > > Anyone tell me how to set $browser depending on the actual browser in use ? > > Jim Carey > > > > -- > 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 (#24183) next »