Unable to echo variables
Posted: Sun May 19, 2002 5:54 pm
I have 25 years experience as a programmer, but only 25 MINUTES experience with PHP and MySQL.
Just installed both on Mac OS X 10.1.4. The DB seems to be working fine. My problem is with PHP.
After install, I did the usual test with
Works fine.
Then tested with
and it produces nothing.
Also tried the following:
and it echos "You are NOT using Internent Explorer" (but I am).
Also tried a brief example from a form and it did not echo the form contents.
Why is it not echoing variables?
Just installed both on Mac OS X 10.1.4. The DB seems to be working fine. My problem is with PHP.
After install, I did the usual test with
Code: Select all
<?php phpinfo(); ?>Then tested with
Code: Select all
<?php echo $HTTP_USER_AGENT; ?>and it produces nothing.
Also tried the following:
Code: Select all
<?php
if(strstr($HTTP_USER_AGENT, "MSIE"))
echo "You are using Internet Explorer<br>";
else
echo "You are NOT using Internet Explorer<br>" ?>Also tried a brief example from a form and it did not echo the form contents.
Why is it not echoing variables?