error on last line of file (tearing hair out)
| From: | Justin French | Date: | Wed, 04 Apr 2001 01:13:48 +0000 |
| Subject: | error on last line of file (tearing hair out) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-46942@lists.php.net to get a copy of this message | ||
hi,
it's happened before, but it's happening again, and it's giving me the s**ts!!!
I get this error:
Parse error: parse error in
/home/clients/jfrench/public_html/indent/tests/simple2/login4.php on
line 88
Problem is, line 88 is the last line of the file, which
simply has "</HTML>"
My question is in two parts:
1. Is it possible it's to do with unix/macintosh line breaks , carrige
returns and end-of-files. I thought this at first, but i've opened the
file on a PC and shifted a few things around (which usually fixes a line
break problem). I've also opened the file in different text editors and re-saved.
2. Is it possibly a bug in php4 (according to phpinfo() i'm running "PHP
Version 4.0.4pl1", on a FreeBSD box with MySQL and PHP3 as well.
Since the last line of the file has NO PHP CODE, and all the php code
prior to that has been closed off (?>), or is it more likely a bug in my
code, but PHP4 isn't reporting the correct line?
Either way, I'm sick of it!!!!
Thanks in advance, and I can psot the code if people think it will help...
Justin French