Maybe this could do the job as well. Thanks "Emo" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > I don't know if you mean this ... > I use for detect browser and send css for it this script: > > <?php > // set default css file (MSIE) > $css='main.css'; > // if browser is opera ... > if (substr_count($_SERVER["HTTP_USER_AGENT"], 'Opera')) > { > // ... set opera css > $css='main.opera.css'; > } > // if browser is gecko-based (mozilla, etc...) > elseif (substr_count($_SERVER["HTTP_USER_AGENT"], 'Gecko')) > { > // ... set gecko css > $css='main.gecko.css'; > } > ?> > <html> > <head> > <title> Some title </title> > <link rel=StyleSheet href="<? echo $css; ?>" type="text/css"> > <meta http-equiv="content-type" content="text/html; charset=windows-1250"> > </head> > <body> > ..... > ..... > ..... > "ØYstein HåLand" <[EMAIL PROTECTED]> pí¹e v diskusním pøíspìvku > news:[EMAIL PROTECTED] > > Till now I've bin using the BrowserDetect.class.php by Harry Fuecks. Since > I > > migrated to register_globals=off this produses a lot of error messages. > Has > > anyone a modification that work or another script doing the same? > > > > > >
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php