I get this message on my web page: Parse error:syntax error, unexpected_STRINGheader_tags.php on line 16?
Related posts:
- Parse error while executing php code..Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in? Parse error while executing php code..Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in?...
- Php Parse Error: Syntax Error,unexpected $end in index.php? Php Parse Error: Syntax Error,unexpected $end in index.php?...
- PHP Error – Need Help – Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’? PHP Error – Need Help – Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’?...
- PHP error “Parse error: syntax error, unexpected T_ELSE in C:\xampp\htdocs\login.php on line 46″? PHP error “Parse error: syntax error, unexpected T_ELSE in C:\xampp\htdocs\login.php on line 46″?...
- FAQ: PHP error Parse error: syntax error, unexpected T_STRING? FAQ: PHP error Parse error: syntax error, unexpected T_STRING?...
One comment
Even though Yahoo cut off part of that line with the infamous ellipses, I believe you have an apostrophe in that line. I am guessing you are using the words “what’s”? Notice the apostrophe in the text?
You have to make sure you escape your characters like apostrophes, quotation marks and others. Because you use a single apostrophe in that line the parser is screwing up. Single quotes are used for enclosing strings so if you are going to use them in a string, they have to be escaped.
I am sure that will solve your problem. Good luck to you!