Error for no reason

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
zyklon
Forum Commoner
Posts: 49
Joined: Mon Jul 31, 2006 7:14 pm
Location: MA, USA

Error for no reason

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Maybe a string not closed or forgot a } somewhere.
User avatar
zyklon
Forum Commoner
Posts: 49
Joined: Mon Jul 31, 2006 7:14 pm
Location: MA, USA

Post 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.
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post 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.
User avatar
zyklon
Forum Commoner
Posts: 49
Joined: Mon Jul 31, 2006 7:14 pm
Location: MA, USA

Post by zyklon »

my code is nearly 500 lines long are you sure you want to see it>
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

zyklon wrote:my code is nearly 500 lines long are you sure you want to see it>
Yes...otherwise, we cant help
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Do you use heredoc syntax at all? Anything like:

Code: Select all

$string =<<<END

blah
blah
blah
END;
Mac
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
Post Reply