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