Re: re: echo w/ here document

From: Date: Tue, 12 Nov 2002 13:30:44 +0000
Subject: Re: re: echo w/ here document
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-123984@lists.php.net to get a copy of this message
Works fine on my system. As Aaron said, make sure there are no spaces around ENDOFECHO; Marco -- ------------ php|architect - The magazine for PHP Professionals The first monthly worldwide magazine dedicated to PHP programmers Check us out on the web at http://www.phparch.com On Tue, 2002-11-12 at 08:21, Aaron Gould wrote: > Looks ok to me. Try making sure that all white space is removed from after > the "echo <<<ENDOFECHO", and both before and after the "ENDOFECHO;" line. > Heredocs don't play nicely with white space... > -- > Aaron Gould > webdevel@partscanada.com > Web Developer > Parts Canada > > > ----- Original Message ----- > From: "Craig Buxton" <craig@skydiveu.com> > To: <php-general@lists.php.net> > Sent: Tuesday, November 12, 2002 5:32 AM > Subject: [PHP] re: echo w/ here document > > > > I'm still having a problem with including a here document. Trying this > > code: > > > > <?php > > echo <<<ENDOFECHO > > <HTML> > > <BODY> > > hello... hello... hello... hello... > > </BODY> > > </HTML> > > ENDOFECHO; > > ?> > > > > I get a parse error on line 7. Please help. I have a major project that > > has ground to a halt. > > > > Craig Buxton > > Gravity Pilot Productions > > craig@gravitypilot.com > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#123984) next »