[PHP] strange parse error at EOF
Hello. Get a strange parse error at End of File Any suggestions what I do wrong? I use UNIX-formatted text-file written in windows-client and uploaded to server. Using PHPEDIT to check I get the same error as when I visit the page, and I can't find any error looking through the file (/,/; etc.). I use ?php ? as start/end tags in php Address to webpage: http://studorg.nlh.no/storband/wopen.php Address where you can download the file http://studorg.nlh.no/storband/docs/wopen_was_php Bård Magnus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] strange parse error at EOF
On Monday 02 December 2002 01:24, Bård Magnus Fauske wrote: Hello. Get a strange parse error at End of File Any suggestions what I do wrong? I use UNIX-formatted text-file written in windows-client and uploaded to server. Using PHPEDIT to check I get the same error as when I visit the page, and I can't find any error looking through the file (/,/; etc.). Check for matching ',, {, (, [ and missing ; -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* I did this 'cause Linux gives me a woody. It doesn't generate revenue. (Dave '-ddt-` Taylor, announcing DOOM for Linux) */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] strange parse error at EOF
Get a strange parse error at End of File If you get a parse error on the very last line of the file, it's generally because you missed a closing bracket somewhere. In your case, you're missing the closing bracket for this elseif elseif ($SENDMAIL == 'true') This is where proper indentation of your code will help you catch simple mistakes like this... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php