Jump to content

Quick Question


Flowdy

Recommended Posts

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?
Link to comment
Share on other sites

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. 
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.