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
[EMAIL PROTECTED]
Web Developer
Parts Canada


----- Original Message -----
From: "Craig Buxton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
> [EMAIL PROTECTED]
>
>
> --
> 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

Reply via email to