954,576 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Parse error: syntax error, unexpected $end in

Im getting this error message "Parse error: syntax error, unexpected $end" Can anyone point out this error. Thank you.

<?php

function CopyrightCheck($crCheck) {

$crCheck = stripslashes($crCheck);


$Copyright_Notice = "Copyright &copy; 2000-2009 YourWebsite.com (Your Script). All Rights Reserved";


if ($crCheck !== $Copyright_Notice) {

return COPYRIGHT_NOT_VALID;

} else {



return COPYRIGHT_IS_VALID;

}

?>
83apple
Newbie Poster
8 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

You forgot the ending }

ShawnCplus
Code Monkey
Team Colleague
1,583 posts since Apr 2005
Reputation Points: 526
Solved Threads: 268
 

Hi,

Try this code;

function CopyrightCheck($crCheck) {
$crCheck = stripslashes($crCheck);
$Copyright_Notice = "Copyright &copy; 2000-2009 YourWebsite.com (Your 

Script). All Rights Reserved";
if ($crCheck != $Copyright_Notice) 
   return COPYRIGHT_NOT_VALID;
else
   return COPYRIGHT_IS_VALID;
emarshah
Junior Poster in Training
61 posts since Jan 2008
Reputation Points: 10
Solved Threads: 6
 

listen to shaun - you left out closing brace (just like the last poster!)

diafol
Rhod Gilbert Fan (ardav)
Moderator
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You