I want to remove a parsing error. I'm using notepad as my editor and there is always a blank space at the bottom of the notepad window which keeps getting parsed. If notepad is causing the problem, can anyone recommend a good php3 editor.
Not sure what you mean....usually Blank spaces shouldn't make any difference...like in this example;
<?php
//white space won't get parsed
echo "This will be parsed";
?>
Are you sure the parse error isn't in the script itself?
regards, scott d~
I am absolutely positive it's because of the white space that follows the last line of any file in a text editor. In this case the white space follows the closing html tag. I put the html tag in a different location and I still got the same error. I want someone to tell me how to remove the error message not necessarily the error.
You're right it was a line in my php script. Maybe I didn't count the number of lines right.
Having a parse error that appears to be pointing to a line that isn't there is very common.......and it always means that there is a very simple error with the code.....like missing a "}" or something simple like that.
Yeah, Scott, I missed the last "}" TWICE today, the first time I went on a fishing expedition for a while to debug, and the second, I knew right away. BTW, I use Homesite 4.5 to edit all my PHP -- good color coding and BF.
I also think its the script itself.