Parse/Syntax Errors

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
AnsonM
Forum Commoner
Posts: 72
Joined: Thu Sep 25, 2003 7:21 am

Parse/Syntax Errors

Post by AnsonM »

Is there something that can fix parse/syntax errors?

I need something that can help because sometimes i cant find the error :\
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Why not post the error message, and the lines of code it refers to, and maybe we can help you fix it.

Mac
AnsonM
Forum Commoner
Posts: 72
Joined: Thu Sep 25, 2003 7:21 am

Post by AnsonM »

Oh ok... I'll do that in the future... i ran into an error before.. and i just fixed it :\
User avatar
Leviathan
Forum Commoner
Posts: 36
Joined: Tue Sep 23, 2003 7:00 pm
Location: Waterloo, ON (Currently in Vancouver, BC)

Post by Leviathan »

There's only one good way to fix syntax errors on your own: you. If you're at all serious about programming, you need to get used to doing that. Compilers/interpreters can't asume what you mean with a particular statement. They're dumb; all they can do is make sure that your code conforms to a well-defined set of language rules. A specific rule can be broken for more than one reason, so they can't determine exactly what's wrong and help you fix it. PHP does tell you where (at least on what line number) a particular error occurs; use that to help you locate the bug.
Post Reply