"unexpected $end" parse error when '<?'
Posted by: donut2d (219.248.103.---)
Date: August 09, 2006 11:03AM

I have not had this problem with any other server package (XAMPP, phpdev, etc). Basically, any time a '<?php' does not have the 'php' bit (it's just '<?') then I get the following error:

Parse error: parse error, unexpected $end in...

And then it lists the page/line number, etc. This is fine for me because I always put the 'php' bit in, but not so fine for the calendar script I'm running in which the author never put the 'php' bit in.

Is there some way to disable this check? I'm running the PHP swticher and using PHP4 (same problem in PHP5). Just a bizarre bug.

Options: ReplyQuote
Re: "unexpected $end" parse error when '
Posted by: yfastud (72.236.169.---)
Date: August 09, 2006 01:16PM

Search this forum for short tag.
Hope this help.

Options: ReplyQuote
Re: "unexpected $end" parse error when '
Posted by: donut2d (---.wordofgrace.org)
Date: August 10, 2006 03:38AM

Thanks! For those who come to this form, you need to change the option 'short_open_tag' to 'On'. Check out [us2.php.net]

Options: ReplyQuote


Sorry, only registered users may post in this forum.