![]() |
| ||
| Parse error: syntax error, unexpected T_STRING I am getting error at the second line of the code, what is the problem :-/ $content = '<' . '?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?' . '>'; |
| ||
| Re: Parse error: syntax error, unexpected T_STRING Quote:
$content .= "code"; $content .= "code"; $content .= "code"; Creates one logical line, missing semi-colon after </issued>" creates a second line, and a syntax error |
| ||
| Re: Parse error: syntax error, unexpected T_STRING Ok, I use this; $content = '<' . '?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?' . '>'; But now it gives error at the first line of this code... |
| ||
| Re: Parse error: syntax error, unexpected T_STRING i tried this: $content = '<?xml version="1.0" encoding="utf-8" standalone="yes"?>';and there were no errors on my server. |
| ||
| Re: Parse error: syntax error, unexpected T_STRING Really thanks, but now I get this error Parse error: syntax error, unexpected T_DNUMBER at line 25 :( My full code is this <?php |
| ||
| Re: Parse error: syntax error, unexpected T_STRING you are missing a quotation on this line: $your_password="xxx; // change this to your blogger login password |
| ||
| Re: Parse error: syntax error, unexpected T_STRING You must change your code on line 25 like this: $content = "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>"; |
| ||
| Re: Parse error: syntax error, unexpected T_STRING My suggestion is to ditch whatever editor you are using, and set up an editor with code highlighting the missing quotes, semicolons and other syntax errors would then be highlighted while you are editing. |
| All times are GMT -4. The time now is 3:40 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC