[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Using Apache environment variables to display browser type (was Redirections)
- Subject: Re: [cobalt-users] Using Apache environment variables to display browser type (was Redirections)
- From: "Steven Werby" <steven-lists@xxxxxxxxxxxx>
- Date: Wed Aug 9 07:24:11 2000
into it <intoitall@xxxxxxxxx> wrote:
> UNFORTUNATLY PEOPLE ARE MISSING THE POINT...
And posting in ALL CAPS isn't going to get our attention. It's more likely to
irritate us and make us IGNORE YOU.
> I THINK A MUCH BETTER SOLUTION IS TO COME UP WITH A
> SERVER SIDE BROWSER SNIFFER AND GET AS MUCH OFF OF OUR
> WEB PAGES AS POSSIBLE...
How about PHP?
<? echo $HTTP_USER_AGENT; ?>
In my browser it returns:
Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
And you could use functions like explode() and/or regular expressions to pull
out the components from that string that interest you. You may want to create a
PHP page with the following code: <? phpinfo(); ?> and then load the page in a
browser and get familiar with the Apache environment variables and PHP variables
available to you.
Steven Werby {steven-lists@xxxxxxxxxxxx}