100 Web Space

Why won't this work?
Page 1 of 1

Author:  captspalding [ Sun Oct 08, 2006 9:13 pm ]
Post subject:  Why won't this work?

I am currently learning PHP and the following is code for one of the chapter projects in my text. I have been able to get all the others to work but not this one. I get a Parse error on line 13. If I leave it as is it says it is expecting a , or a ;, if I change echo to print like the rest of the code I just get a Parse error. It probably is something simple but I just can't see it. Any help is appreciated.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="http://www.w3.org/1999/xhtml">
<title>PHP Environment</title>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1" />

echo “This text is printed using standard PHP script delimiters.”;
<script language=”php”>
print “This text is printed using a PHP script section.”;
print “This text is printed using short PHP script delimiters.”;

print "This text is printed using ASP-style script delimiters.";

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group