Re: $HTTP_USER_AGENT
| From: | eric dot coleman at zaireweb dot com | Date: | Sat, 30 Mar 2002 23:48:02 +0000 |
| Subject: | Re: $HTTP_USER_AGENT | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-90820@lists.php.net to get a copy of this message | ||
Why not echo $HTTP_USER_AGENT and find out?
----- Original Message -----
From: "Sean Kennedy" <gdesigns@vcn.com>
To: <php-general@lists.php.net>
Sent: Saturday, March 30, 2002 11:43 AM
Subject: [PHP] $HTTP_USER_AGENT
> Hello,
>
> Im making a small php script, but I need to know how to do something.
>
> My problem is: I have a script thats like this:
>
> <?php
> if ($HTTP_USER_AGENT == "WHAT GOES HERE FOR IE AND NS?") {
> echo "You have Internet Explorer";
> } else {
> echo "You have Netscape";
> }
> ?>
>
> Do you know what I mean? Thanks,
>
> -Sean
> Kennedy
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>