Page 1 of 1
Error for no reason
Posted: Mon Oct 09, 2006 3:52 pm
by zyklon
i have this error in my code it is at the very end, and i cant find a reason why this is happening, can someone help, you'll seee y i dont wnt to post the code.
Parse error: parse error, unexpected $ in /home/zyklonz/public_html/controlcenter.php on line 471
Posted: Mon Oct 09, 2006 4:12 pm
by volka
Maybe a string not closed or forgot a } somewhere.
Posted: Mon Oct 09, 2006 4:25 pm
by zyklon
i dont think it's a } forgot somewhere as i put one at the bottom and it didnt go with anyone, i looked through the part i changed and nothing. What do you mean by a string just a forgotten ; what else, the text editor i use is mguma open studio if that helps.
Posted: Mon Oct 09, 2006 4:27 pm
by Ollie Saunders
Error for no reason
Unlikely. If you've got 2+ years PHP programming experience I might take that claim seriously but otherwise no (myself included).
Volka is probably right, do a search for { and then } and see if the numbers match up.
Post your code for more help.
Posted: Tue Oct 10, 2006 5:29 am
by zyklon
my code is nearly 500 lines long are you sure you want to see it>
Posted: Tue Oct 10, 2006 5:37 am
by JayBird
zyklon wrote:my code is nearly 500 lines long are you sure you want to see it>
Yes...otherwise, we cant help
Posted: Tue Oct 10, 2006 10:35 am
by twigletmac
Do you use heredoc syntax at all? Anything like:
Code: Select all
$string =<<<END
blah
blah
blah
END;
Mac
Posted: Tue Oct 10, 2006 10:57 am
by RobertGonzalez
My thoughts exactly twig. Usually the error that was posted is associated with a HEREDOC closing tag that is NOT all the way to the left. Although it could be a missing bracket or parenthesis.