Re: Redirect
| From: | Andy Hoffman | Date: | Mon, 28 Aug 2000 13:53:36 +0000 |
| Subject: | Re: Redirect | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-2211@lists.php.net to get a copy of this message | ||
"Asendorf, John" wrote:
> > Hi,
> >
> > I currently use Javascript to perform browser and screen resolution
> > checks when a visitor enters a site. Is there a way to
> > implement this as
> > a PHP server side include script. Thus I can avoid the problerms that
> > arise when non Javascript browsers or those browsers with
> > Java disabled
> > view a website?
> >
> > Much obliged for any help or a url pointing me to information
> > regarding
> > this.
Also, you could use the browsercap extension, if available on the server. This
uses the standard "browsercap.ini" to identify certain browser characteristics
based on the HTTP_USER_AGENT string... takes the burden of you as a programmer
to check EVERY possible user agent (and there are a ton! - win98-IE4, winnt-IE5,
win95-netscape 4, netscape 4.05, netscape 4.06, ad infinitum :)) - this quickly
becomes a screaming headache without something like browsercap.
--
Andy Hoffman
Web Developer
Bristol-Myers Squibb
email: andy.hoffman@bms.com