Page 1 of 1

Parse erro

Posted: Thu Apr 19, 2007 8:38 pm
by pinehead18
Ok, well i have a parse error on my very last line of code which of course is a blank line and is says unexpected $

what should i look for?

Thanks

Posted: Thu Apr 19, 2007 8:46 pm
by John Cartwright
probably a missing }

Posted: Thu Apr 19, 2007 8:50 pm
by Kieran Huggins
or a missing r?

Posted: Thu Apr 19, 2007 8:51 pm
by pinehead18
out of the entire 350 lines of code?
since the error says line 350 and and i have nothing on line 50?

Posted: Thu Apr 19, 2007 9:02 pm
by John Cartwright
Think of it this way, if your missing a curly bracket to end a statement, how would the parser know which curly bracket is the correct one? Therefore, it searches to the end of the document, in your case linr 350.

Posted: Thu Apr 19, 2007 9:35 pm
by pinehead18
Found it, how annoying :)

Thanks guys.

I knew i had to search the whole thing i was just in denial about it :(

Posted: Thu Apr 19, 2007 9:37 pm
by John Cartwright
Some IDE's have inline error checking for you ;)

I know Zend IDE does it, not sure about others.

Posted: Thu Apr 19, 2007 10:17 pm
by aaronhall
Eclipse does for sure, and it's free