Forum Moderators: coopster
Heres the code:
<html>
<head><title>Hello World Program</title></head>
<body>
<?php
echo “<p>Hello World!”
?>
</body>
</html>
Here is the code i typed in with the semicolon.
<html>
<head><title>Hello World Program</title></head>
<body>
<?php
echo “<p>Hello World!”;
?>
</body>
</html>
By any chance do you have any other suggestions?
thanks again.
I'm used to always using the semicolon out of habit but technically with just one statement the semicolon is optional. In your original code there is something going on with the quotation marks. This is what it looks like when I copy & paste yours:
“<p>Hello World!”
but when i type it: "<p>Hello World!"
Notice the subtle difference in the quotation marks?
Are you typing this in MS Word or something?
I'm not sure what is the cause but that is DEFINITELY the problem.
William.
I tried playing around with my FP 2003 and I couldn't find a setting that would use those quotes so I'm not sure how to change it.
William.
[edited by: coopster at 2:28 pm (utc) on Feb. 20, 2006]
[edit reason] removed url per TOS [webmasterworld.com] [/edit]