Page 1 of 1

Parse/Syntax Errors

Posted: Thu Sep 25, 2003 7:21 am
by AnsonM
Is there something that can fix parse/syntax errors?

I need something that can help because sometimes i cant find the error :\

Posted: Thu Sep 25, 2003 7:22 am
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

Posted: Thu Sep 25, 2003 7:23 am
by AnsonM
Oh ok... I'll do that in the future... i ran into an error before.. and i just fixed it :\

Posted: Thu Sep 25, 2003 12:42 pm
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.