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

From: Date: Sun, 26 Aug 2012 01:27:04 +0000
Subject: Re: syntax error breaking in and out of php into html code
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-318854@lists.php.net to get a copy of this message
On Sat, Aug 25, 2012 at 6:54 PM, Ashley Sheridan <ash@ashleysheridan.co.uk> wrote: > I've just inherited some (pretty awful code) that I have to make some > edits to, and came across a bit of a problem. A lot of the code breaks > in and out of PHP and into HTML code: > > <?php > while(condition) > { > ?> > <li>some html here</li> > <?php > } > ?> > > But when I check this my PHP parser is saying that this is a syntax > error (checked in the browser and CLI). I know this is code from a > working site, so it must be a setting within my PHP configuration. I honestly can't think of a config setting that would cause a syntax error for this type of example. Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

« previous php.general (#318854) next »