It is currently Thu Oct 18, 2018 7:02 am


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Why won't this work?
PostPosted: Sun Oct 08, 2006 9:13 pm 
Noobie
Noobie

Joined: Sun Oct 08, 2006 6:45 pm
Posts: 4
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>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ]  Moderators: fhmagic, KJ, Moderators, Support Team

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
100WebSpace © 2011