Flowdy Posted November 26, 2006 Share Posted November 26, 2006 First off sorry if this is the wrong place...My question is when there is an error [b]Parse error: parse error in c:\program files\easyphp1-8\www\registration.php on line 24[/b]when you look for the line do you count all the lines including the ones with nothing on or just the ones with code on? Quote Link to comment https://forums.phpfreaks.com/topic/28553-quick-question/ Share on other sites More sharing options...
.josh Posted November 26, 2006 Share Posted November 26, 2006 It includes "blank" lines. However, your error may or may not actually be on that line. That line is where php first runs up against disagreable code. Example: if you forgot to close out a string (the closing " quote) php will go on parsing stuff as if it were still a string, until it hits something else that terminates the string (like the next instance of a " it finds) and then it expects a ; but since chances are that " it found was the beginning of some other string you had, it won't have a ; after it so it will throw you an error on [i]that[/i] line, even though your missing " happened somewhere before that - maybe 1 line before it, maybe 100 lines. Quote Link to comment https://forums.phpfreaks.com/topic/28553-quick-question/#findComment-130640 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.