Re: syntax error breaking in and out of php into html code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 26 Aug 2012, at 03:56, Ashley Sheridan <ash@xxxxxxxxxxxxxxxxxxxx> wrote:

> Through the browser I get:
> 
> Parse error: syntax error, unexpected $end
> in /var/www/html/siteinquestion/index.php on line 356
> 
> Through the CLI I get:
> 
> PHP Parse error:  syntax error, unexpected $end in index.php on line 356
> 
> Parse error: syntax error, unexpected $end in index.php on line 356
> 
> Errors parsing index.php
> 
> I've narrowed it down to the lines that used the breaking in and out of
> PHP style. As soon as I comment out those it runs fine, albeit without
> the content that code was intended to add.


Let me guess, line 356 is the last line of the file? That error is only caused by mis-matched braces, so the code you are deleting *must* contain either an errant opening brace or be missing a closing brace.

-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux