Welcome! Log In Create A New Profile

Advanced

Parse error?

Posted by Anonymous User 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Anonymous User
Parse error?
September 13, 2012 05:28PM
Language: PHP
<HTML> <HEAD> <TITLE>PHP Testing</TITLE> </HEAD> <BODY> <?php echoIf this works, we <i>really</i> did it!; ?> </BODY> </HTML>

A simple script from chapter 1 in the handbook, but when I execute it on my server i get this error> Parse error: syntax error, unexpected 'this' (T_STRING), expecting ',' or ';' in C:\xampp\htdocs\phptest.php on line 7
I don't see what could be wrong on line 7, if the problem is my server how would I fix this?
avatar
Mac
Re: Parse error?
September 14, 2012 08:53AM
The smart quotes is the problem... which is why one should never copy and paste.

Language: PHP
<?php echo "If this works, we <i>really</i> did it!"; ?>
Anonymous User
Re: Parse error?
September 17, 2012 08:08AM
Sorry, only registered users may post in this forum.

Click here to login