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

From: Date: Sun, 26 Aug 2012 10:02:04 +0000
Subject: Re: syntax error breaking in and out of php into html code
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-318861@lists.php.net to get a copy of this message
On 26 Aug 2012, at 03:56, Ashley Sheridan <ash@ashleysheridan.co.uk> 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/

« previous php.general (#318861) next »