Re: re: echo w/ here document
| From: | Aaron Gould | Date: | Tue, 12 Nov 2002 13:21:23 +0000 |
| Subject: | Re: re: echo w/ here document | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-123982@lists.php.net to get a copy of this message | ||
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