Re: HTTP_USER_AGENT?
| From: | Justin French | Date: | Thu, 11 Jul 2002 02:41:17 +0000 |
| Subject: | Re: HTTP_USER_AGENT? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-106996@lists.php.net to get a copy of this message | ||
Try:
<? echo $_SERVER['HTTP_USER_AGENT']; ?>
... you might have a newer version of PHP (4.1+), which uses the global
arrays like:
$_SERVER
$_POST
$_GET
$_SESSION
$_COOKIE
...
Justin French
on 11/07/02 12:32 PM, George Hester (hesterloli@hotmail.com) wrote:
> I have this in my web site not in an executable folder:
>
> <HTML>
> <HEAD>
> <TITLE>My First PHP Program</TITLE>
> </HEAD>
> <BODY>
> <?php echo "Hello World!"; ?>
> </BODY>
> </HTML>
>
> No problem. I then put this in the same folder:
>
> <HTML>
> <HEAD>
> <TITLE>My Second PHP Program</TITLE>
> </HEAD>
> <BODY>
> <?php echo $HTTP_USER_AGENT; ?>
> </BODY>
> </HTML>
>
> Nothing appears. What's wrong?
>
>
> --
> George Hester
> _________________________________
>
>