Re: HTTP_USER_AGENT?

From: Date: Thu, 11 Jul 2002 02:37:59 +0000
Subject: Re: HTTP_USER_AGENT?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-106994@lists.php.net to get a copy of this message
the $HTTP_USER_AGENT varible contains nothing... Try doing a phpinfo(); to see what the correct varible to use is, it is most likly $_SERVER['HTTP_USER_AGENT'] since the way these varibles are handled changed a few versions ago Andrew "George Hester" <hesterloli@hotmail.com> wrote in message news:20020711023254.54808.qmail@pb1.pair.com... > 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 > _________________________________ > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#106994) next »