Re[2]: [PHP] print <<<EOF
| From: | David Tod Sigafoos | Date: | Tue, 28 Nov 2000 16:35:53 +0000 |
| Subject: | Re[2]: [PHP] print <<<EOF | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-27616@lists.php.net to get a copy of this message | ||
Hello Christian,
Tuesday, November 28, 2000, 7:35:15 AM, you wrote:
>>This is available with PHP4. This works perfectly. I've tested this
>>with php 3.0.9 and it doesn't work.
>>
>>You probably need to upgrade to a version that supports this.
CD> I use PHP4... I've just downloaded the latest PHP two weeks ago.
CD> I'm doing exactly like this
CD> function something($script_name)
CD> {
CD> echo "<form action=\"$script_name\" method=\"POST\">";
CD> print <<<EOF
CD> than I have a lot of HTML code with quotes and everything... (a whole form)...
CD> EOF; < it IS on the first column of text...
CD> }
CD> and the parser error is on the line containing "print <<<EOF"... I've
CD> tried
CD> to put that on the first column as well... it simply doesn't work...
is it possible that EOF is a reserved word or constant that php does
not like seeing. Jeremy didn't mention if he tested using EOF.
I don't have time right now but you might want to try changing this to
something else .. fubar?
--
DSig
David Tod Sigafoos
mailto:dsig@teleport.com