Impossible Parse Error

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

User avatar
llanitedave
Forum Commoner
Posts: 78
Joined: Thu Jan 15, 2004 11:24 am
Location: Las Vegas, NV.

Post by llanitedave »

Red Hair, you are a genius! :mrgreen:
Thanks for your sharp eyes. I think our parsers and text editors count up line numbers differently, but it WAS indeed a "}" that I had omitted. I had been using indents within blocks to keep track of opening and closing brackets, rather than doing a strict count -- lazy man's way. And "else" blocks seem to always throw me off track. The parser did just what it was supposed to do -- it kept patiently looking for a "}" until it could no longer sustain the illusion that the programmer knew what he was doing. It gave me the error message at the point where it lost faith in my competence!

I owe you a beer, or a pepsi, or a steak dinner, or some real estate.

For now, I'll go and sweet-talk my parser. Maybe it'll forgive me...
:wink:
Post Reply