Re: Here Document on Mac OS X
| From: | @ Edwin | Date: | Tue, 12 Nov 2002 12:40:05 +0000 |
| Subject: | Re: Here Document on Mac OS X | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-123972@lists.php.net to get a copy of this message | ||
Hello,
"Craig Buxton" <craig@gravitypilot.com> wrote:
> I have been trying to include an echo statement incorporating a here
> document on pages being served by my Mac OS X (v10.1.5) and Apache (v1.3)
>
> When I try to browse test.php, which contains...
>
> <?php
> echo<<<ENDOFECHO
> <html>
> hello...hello...
> </html>
> ENDOFECHO;
> ?>
>
> I get a parse error. When I upload it to my ISP it works as expected,
> but again it won't work on my server. What can I change or where can I
> go for an answer.
I did a "copy and paste" and your code works fine. Perhaps, you can
(1) post the exact error message
(2) check whether you uploaded *the same* file :)
(3) make sure that there's no spaces, etc. after the semi-colon
> ENDOFECHO;
- E