100 Web Space
http://forum.100webspace.com/

Why won't this work?
http://forum.100webspace.com/viewtopic.php?f=5&t=5032
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"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>PHP Environment</title>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1" />
</head>
<body>
<p>
<?php

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

<%
print "This text is printed using ASP-style script delimiters.";
%>
</p>
</body>
</html>

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/