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
pinehead18
Forum Contributor
Posts: 329 Joined: Thu Jul 31, 2003 9:20 pm
Post
by pinehead18 » Thu Apr 19, 2007 8:38 pm
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
pinehead18
Forum Contributor
Posts: 329 Joined: Thu Jul 31, 2003 9:20 pm
Post
by pinehead18 » Thu Apr 19, 2007 8:51 pm
out of the entire 350 lines of code?
since the error says line 350 and and i have nothing on line 50?
John Cartwright
Site Admin
Posts: 11470 Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:
Post
by John Cartwright » Thu Apr 19, 2007 9:02 pm
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.
pinehead18
Forum Contributor
Posts: 329 Joined: Thu Jul 31, 2003 9:20 pm
Post
by pinehead18 » Thu Apr 19, 2007 9:35 pm
Found it, how annoying
Thanks guys.
I knew i had to search the whole thing i was just in denial about it
John Cartwright
Site Admin
Posts: 11470 Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:
Post
by John Cartwright » Thu Apr 19, 2007 9:37 pm
Some IDE's have inline error checking for you
I know Zend IDE does it, not sure about others.
aaronhall
DevNet Resident
Posts: 1040 Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:
Post
by aaronhall » Thu Apr 19, 2007 10:17 pm
Eclipse does for sure, and it's free