Script URL: www.workrant.com/gbook143
Version of script: the latest
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
unexpected T_STRING
Parse error
Syntax error
Problems installing
etc.
Write your message below:
Hello Klemen,
I very much appreciate your script and think it will look and function great on my site, when I've sorted it all out and customised it.
I'm been stumped however with a problem early on.
When I try to access gbook.php I am getting the following error:
Parse error: syntax error, unexpected T_STRING in /home/workrant/public_html/gbook143/gbook.php on line 59
Line 59 is as follows I've put it in bold and the surrounding code for context:
if (!(empty($a))) {
if (!empty($_SESSION['block'])) {
problem('You can't have a rant at the moment!',0);
}
The only thing I've customised here is the text, and I checked with the original source to see if I accidently deleted anything else (can happen), which I haven't.
Any ideas.
Thank you for your time.
Mark
Parse error: syntax error, unexpected T_STRING on line 59
Hello Mark
To correct this, you have to escape the single quote in can't with a backslash like this can\'t.
The correct code for that line would than be:
Greetings,
Henrie
The single quotes are there to mark the start and end of the text string. In can't you have used a single quote before the end of the text string and this causes the error.problem('You can't have a rant at the moment!',0);
To correct this, you have to escape the single quote in can't with a backslash like this can\'t.
The correct code for that line would than be:
Code: Select all
problem('You can\'t have a rant at the moment!',0);
Henrie