PDA

View Full Version : simple php script not working @ f2s



baby3311
September 14th, 2001, 02:05
i'm a newbie who is very interested in php.

i'm not sure why $http_user_agent is not working at f2s such as an expression like <?php echo $http_user_agent;?>
the returned message was an parse error.

thanks for reading.

Cheap Bastard
September 14th, 2001, 07:33
Originally posted by baby3311
i'm a newbie who is very interested in php.

i'm not sure why $http_user_agent is not working at f2s such as an expression like <?php echo $http_user_agent;?>
the returned message was an parse error.

thanks for reading.
try <? echo "$http_user_agent";?>

baby3311
September 14th, 2001, 10:25
ok thanks very much.

there was actually nothing wrong with my script but only 'errors' in the space before and after echo.