Re: HTML and PHP?

From: Date: Sat, 14 Apr 2001 21:31:27 +0000
Subject: Re: HTML and PHP?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-48592@lists.php.net to get a copy of this message
> > Just make sure you don't indent the closing marker or the parser will miss > > it! YES!! -- I struggled with that one for a long time... (at least a couple of hours, before I said, hmmm... let me [for giggles] remove the TABS before the closing marker... -- bam... Parser Error went away...) FYI to other readers: you can indent (or Tab) the leading marker, but the trailing maker cannot have tabs infront of it. for example <? print <<<SOMESTUFF // leading marker here is a line of text and HTML <html> <head> SOMESTUFF; // notice no tabs here on the end marker "SOMESTUFF" ?> Jason "Brian Clark" <brianj@fusionwerks.com> wrote in message news:67140225273.20010414135628@fusionwerks.com... > Hi Steve, > > @ 11:34:26 PM on 4/13/2001, Steve Werby wrote: > > ... > > <? > > echo <<<STOP > > > <html> > > Yes, echo can use here-docs! Is it really that *hard* to take 1 minute to > > test for yourself? ;-) > > And you can use whatever marker (the 'STOP' above and below) you choose. > > Just make sure you don't indent the closing marker or the parser will miss > > it! > > </html> > > > STOP; > ?>> > > Why even bother? Why not just do this? > > ?> > > <html> > Boo > </html> > > <?php > > -Brian > -- > PGP is spoken here: 0xE4D0C7C8 > Please do not carbon copy me on list replies. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#48592) next »