Maybe you have a "<?" inside the HTML code and your php configuration allows short open tags? In production that setting could be disabled. On Sun, Aug 26, 2012 at 9:20 AM, Ashley Sheridan <ash@xxxxxxxxxxxxxxxxxxxx>wrote: > On Sun, 2012-08-26 at 11:02 +0100, Stuart Dallas wrote: > > > 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/ > > > It is the last line of the file, but it's not caused by a mismatched > brace. I've tested by deleting just the code in the section where it > breaks out of PHP and it runs without errors. It's a very weird issue, > because this is code that is currently working on another server (which > I don't have access to to match my own setup) > > -- > Thanks, > Ash > http://www.ashleysheridan.co.uk > > >