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" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php