Re: [PHP] Parse error on blank line...
I gotta agree here. It happens every once in a while and it usually turns out to be something like that... also check to see if you have any here-docs in there that aren't terminated correctly (the ending signal must appear at the first column of a line and be followed by a semicolon). I don't know what else to suggest, but try commenting out some blocks of code systematically and see when it goes away... the thing's got to quit erroring out at some point. --Toby April wrote: No, I have the same thing happen all the time. It happens after a combination of }'s and ;'s where either a } or a ; is missing. Seriously. - Original Message - From: "Jackson, Michael" [EMAIL PROTECTED] To: "'johnny p.'" [EMAIL PROTECTED]; "April" [EMAIL PROTECTED]; "Jackson, Michael" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, February 05, 2001 4:48 PM Subject: RE: [PHP] Parse error on blank line... Even if I was missing a brace, doesn't it seem odd that it would always give me a syntax error on the same line? It's as if it's arbitrarily deciding to break there... If I add a new line after ?php, it still gives the exact same line number... And again, I can comment it out, and it will still give me an error on the same line number. Again, this is the same line NUMBER - It apparently doesn't matter what snippet of code exists there. -Original Message- From: johnny p. [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 05:38 PM To: April; Jackson, Michael; [EMAIL PROTECTED] Subject: RE: [PHP] Parse error on blank line... I'm not sure where it is, but I agree that you are missing a curly brace somewhere. Take a break from your code for a bit, come back to it, and start matching braces. I suggest getting a coffee or some tea. johnny p. -Original Message- From: April [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 4:31 PM To: Jackson, Michael; [EMAIL PROTECTED] Subject: Re: [PHP] Parse error on blank line... You missed a } in there. Inside of that else, you have an if, but you never close the else. 190 showmainscreen(); 191} 192 should be 190 showmainscreen(); 191} 192} - Original Message - From: "Jackson, Michael" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 05, 2001 4:23 PM Subject: [PHP] Parse error on blank line... Hello all, I hope this doesn't turn out to be a stupid question, but we will see... I am getting parse errors on blank lines. Not commented, but totally blank. And seemingly no matter how I manipulate the text, it turns out to always be on the same line. I'm using vim with syntax tags to help me check my basic syntax, and everything seems to be closed - I am at a total loss as to what could be wrong! Let me try to clarify: Take the following snippet of code - It errors out on line 193. I have no idea why. I added blank lines to shift the code around - and if I eliminated all of the blank lines, I still error out on 193. 001 ?php . 181 ## 182 # BEGIN CODE # 183 ## 184 185 if ($goodtogo != "yes") { 186sanitize_session(); 187 } 188 else { 189if ($state == "main") { 190 showmainscreen(); 191} 192 193 194 195 196elseif ($state == "add") { 197 adduser($product,$username); 198} 199elseif ($state == "search") { 200 searchuser($username); 201} 202else { 203 doh(); 204} 205 } 206 207 208 # END CODE # 209 210 ? Any help is greatly appreciated! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Parse error on blank line...
You missed a } in there. Inside of that else, you have an if, but you never close the else. 190 showmainscreen(); 191} 192 should be 190 showmainscreen(); 191} 192} - Original Message - From: "Jackson, Michael" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 05, 2001 4:23 PM Subject: [PHP] Parse error on blank line... Hello all, I hope this doesn't turn out to be a stupid question, but we will see... I am getting parse errors on blank lines. Not commented, but totally blank. And seemingly no matter how I manipulate the text, it turns out to always be on the same line. I'm using vim with syntax tags to help me check my basic syntax, and everything seems to be closed - I am at a total loss as to what could be wrong! Let me try to clarify: Take the following snippet of code - It errors out on line 193. I have no idea why. I added blank lines to shift the code around - and if I eliminated all of the blank lines, I still error out on 193. 001 ?php . 181 ## 182 # BEGIN CODE # 183 ## 184 185 if ($goodtogo != "yes") { 186sanitize_session(); 187 } 188 else { 189if ($state == "main") { 190 showmainscreen(); 191} 192 193 194 195 196elseif ($state == "add") { 197 adduser($product,$username); 198} 199elseif ($state == "search") { 200 searchuser($username); 201} 202else { 203 doh(); 204} 205 } 206 207 208 # END CODE # 209 210 ? Any help is greatly appreciated! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Parse error on blank line...
argh, nm, I'm an idiot. - Original Message - From: "April" [EMAIL PROTECTED] To: "Jackson, Michael" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, February 05, 2001 4:31 PM Subject: Re: [PHP] Parse error on blank line... You missed a } in there. Inside of that else, you have an if, but you never close the else. 190 showmainscreen(); 191} 192 should be 190 showmainscreen(); 191} 192} - Original Message - From: "Jackson, Michael" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 05, 2001 4:23 PM Subject: [PHP] Parse error on blank line... Hello all, I hope this doesn't turn out to be a stupid question, but we will see... I am getting parse errors on blank lines. Not commented, but totally blank. And seemingly no matter how I manipulate the text, it turns out to always be on the same line. I'm using vim with syntax tags to help me check my basic syntax, and everything seems to be closed - I am at a total loss as to what could be wrong! Let me try to clarify: Take the following snippet of code - It errors out on line 193. I have no idea why. I added blank lines to shift the code around - and if I eliminated all of the blank lines, I still error out on 193. 001 ?php . 181 ## 182 # BEGIN CODE # 183 ## 184 185 if ($goodtogo != "yes") { 186sanitize_session(); 187 } 188 else { 189if ($state == "main") { 190 showmainscreen(); 191} 192 193 194 195 196elseif ($state == "add") { 197 adduser($product,$username); 198} 199elseif ($state == "search") { 200 searchuser($username); 201} 202else { 203 doh(); 204} 205 } 206 207 208 # END CODE # 209 210 ? Any help is greatly appreciated! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Parse error on blank line...
I'm not sure where it is, but I agree that you are missing a curly brace somewhere. Take a break from your code for a bit, come back to it, and start matching braces. I suggest getting a coffee or some tea. johnny p. -Original Message- From: April [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 4:31 PM To: Jackson, Michael; [EMAIL PROTECTED] Subject: Re: [PHP] Parse error on blank line... You missed a } in there. Inside of that else, you have an if, but you never close the else. 190 showmainscreen(); 191} 192 should be 190 showmainscreen(); 191} 192} - Original Message - From: "Jackson, Michael" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 05, 2001 4:23 PM Subject: [PHP] Parse error on blank line... Hello all, I hope this doesn't turn out to be a stupid question, but we will see... I am getting parse errors on blank lines. Not commented, but totally blank. And seemingly no matter how I manipulate the text, it turns out to always be on the same line. I'm using vim with syntax tags to help me check my basic syntax, and everything seems to be closed - I am at a total loss as to what could be wrong! Let me try to clarify: Take the following snippet of code - It errors out on line 193. I have no idea why. I added blank lines to shift the code around - and if I eliminated all of the blank lines, I still error out on 193. 001 ?php . 181 ## 182 # BEGIN CODE # 183 ## 184 185 if ($goodtogo != "yes") { 186sanitize_session(); 187 } 188 else { 189if ($state == "main") { 190 showmainscreen(); 191} 192 193 194 195 196elseif ($state == "add") { 197 adduser($product,$username); 198} 199elseif ($state == "search") { 200 searchuser($username); 201} 202else { 203 doh(); 204} 205 } 206 207 208 # END CODE # 209 210 ? Any help is greatly appreciated! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Parse error on blank line...
Even if I was missing a brace, doesn't it seem odd that it would always give me a syntax error on the same line? It's as if it's arbitrarily deciding to break there... If I add a new line after ?php, it still gives the exact same line number... And again, I can comment it out, and it will still give me an error on the same line number. Again, this is the same line NUMBER - It apparently doesn't matter what snippet of code exists there. -Original Message- From: johnny p. [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 05:38 PM To: April; Jackson, Michael; [EMAIL PROTECTED] Subject: RE: [PHP] Parse error on blank line... I'm not sure where it is, but I agree that you are missing a curly brace somewhere. Take a break from your code for a bit, come back to it, and start matching braces. I suggest getting a coffee or some tea. johnny p. -Original Message- From: April [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 4:31 PM To: Jackson, Michael; [EMAIL PROTECTED] Subject: Re: [PHP] Parse error on blank line... You missed a } in there. Inside of that else, you have an if, but you never close the else. 190 showmainscreen(); 191} 192 should be 190 showmainscreen(); 191} 192} - Original Message - From: "Jackson, Michael" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 05, 2001 4:23 PM Subject: [PHP] Parse error on blank line... Hello all, I hope this doesn't turn out to be a stupid question, but we will see... I am getting parse errors on blank lines. Not commented, but totally blank. And seemingly no matter how I manipulate the text, it turns out to always be on the same line. I'm using vim with syntax tags to help me check my basic syntax, and everything seems to be closed - I am at a total loss as to what could be wrong! Let me try to clarify: Take the following snippet of code - It errors out on line 193. I have no idea why. I added blank lines to shift the code around - and if I eliminated all of the blank lines, I still error out on 193. 001 ?php . 181 ## 182 # BEGIN CODE # 183 ## 184 185 if ($goodtogo != "yes") { 186sanitize_session(); 187 } 188 else { 189if ($state == "main") { 190 showmainscreen(); 191} 192 193 194 195 196elseif ($state == "add") { 197 adduser($product,$username); 198} 199elseif ($state == "search") { 200 searchuser($username); 201} 202else { 203 doh(); 204} 205 } 206 207 208 # END CODE # 209 210 ? Any help is greatly appreciated! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Parse error on blank line...
No, I have the same thing happen all the time. It happens after a combination of }'s and ;'s where either a } or a ; is missing. Seriously. - Original Message - From: "Jackson, Michael" [EMAIL PROTECTED] To: "'johnny p.'" [EMAIL PROTECTED]; "April" [EMAIL PROTECTED]; "Jackson, Michael" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, February 05, 2001 4:48 PM Subject: RE: [PHP] Parse error on blank line... Even if I was missing a brace, doesn't it seem odd that it would always give me a syntax error on the same line? It's as if it's arbitrarily deciding to break there... If I add a new line after ?php, it still gives the exact same line number... And again, I can comment it out, and it will still give me an error on the same line number. Again, this is the same line NUMBER - It apparently doesn't matter what snippet of code exists there. -Original Message- From: johnny p. [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 05:38 PM To: April; Jackson, Michael; [EMAIL PROTECTED] Subject: RE: [PHP] Parse error on blank line... I'm not sure where it is, but I agree that you are missing a curly brace somewhere. Take a break from your code for a bit, come back to it, and start matching braces. I suggest getting a coffee or some tea. johnny p. -Original Message- From: April [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 4:31 PM To: Jackson, Michael; [EMAIL PROTECTED] Subject: Re: [PHP] Parse error on blank line... You missed a } in there. Inside of that else, you have an if, but you never close the else. 190 showmainscreen(); 191} 192 should be 190 showmainscreen(); 191} 192} - Original Message - From: "Jackson, Michael" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 05, 2001 4:23 PM Subject: [PHP] Parse error on blank line... Hello all, I hope this doesn't turn out to be a stupid question, but we will see... I am getting parse errors on blank lines. Not commented, but totally blank. And seemingly no matter how I manipulate the text, it turns out to always be on the same line. I'm using vim with syntax tags to help me check my basic syntax, and everything seems to be closed - I am at a total loss as to what could be wrong! Let me try to clarify: Take the following snippet of code - It errors out on line 193. I have no idea why. I added blank lines to shift the code around - and if I eliminated all of the blank lines, I still error out on 193. 001 ?php . 181 ## 182 # BEGIN CODE # 183 ## 184 185 if ($goodtogo != "yes") { 186sanitize_session(); 187 } 188 else { 189if ($state == "main") { 190 showmainscreen(); 191} 192 193 194 195 196elseif ($state == "add") { 197 adduser($product,$username); 198} 199elseif ($state == "search") { 200 searchuser($username); 201} 202else { 203 doh(); 204} 205 } 206 207 208 # END CODE # 209 210 ? Any help is greatly appreciated! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]