Can't find what this error is pointing to

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
snowrhythm
Forum Commoner
Posts: 75
Joined: Thu May 04, 2006 1:14 pm
Location: North Bay Area, CA

Can't find what this error is pointing to

Post by snowrhythm »

i'm getting this error:

Parse error: parse error, unexpected ';', expecting T_FUNCTION ... on line 20

but there's no ; on line 20! i've looked everywhere for it, and i can't find it. has anyone run into this before?
purinkle
Forum Newbie
Posts: 12
Joined: Fri Jul 13, 2007 6:54 am

Post by purinkle »

Is there one at the end of line 20?

Check that there is one at the end of line 19 as well
User avatar
snowrhythm
Forum Commoner
Posts: 75
Joined: Thu May 04, 2006 1:14 pm
Location: North Bay Area, CA

Post by snowrhythm »

nope, i've side-scrolled that document a million times, no ;
purinkle
Forum Newbie
Posts: 12
Joined: Fri Jul 13, 2007 6:54 am

Post by purinkle »

Are all your " and ' closed?
User avatar
snowrhythm
Forum Commoner
Posts: 75
Joined: Thu May 04, 2006 1:14 pm
Location: North Bay Area, CA

Post by snowrhythm »

found the problem...i closed a php tag before the last curly brace of a class and that messed it up i guess.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Can you edit your title to include [SOLVED] in it so guys like me don't open it? ;)
Post Reply