Re: [PHP] heredoc problem

2003-03-02 Thread Tom Rogers
Hi, Monday, March 3, 2003, 8:02:14 AM, you wrote: jvc> Can someone tell me what is wrong with the following code: jvc> jvc> Testing jvc> jvc> $str = << Example of string jvc> spanning multiple lines jvc> using heredoc syntax. jvc> EOD; ?>> jvc> jvc> jvc> This is code straight out of the

Re: [PHP] heredoc problem

2003-03-02 Thread janet
In a message dated 3/2/2003 3:55:50 PM Pacific Standard Time, [EMAIL PROTECTED] writes: >when I copy/pasted directly from your email and tried to execute it, I can >an error on line 5 too > >I noticed that there's a space at the end of line 5, I deleted it and it >worked fine. > That's it. That i

RE: [PHP] heredoc problem

2003-03-02 Thread Martin Towell
when I copy/pasted directly from your email and tried to execute it, I can an error on line 5 too I noticed that there's a space at the end of line 5, I deleted it and it worked fine. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, March 03, 2003 9

Re: [PHP] heredoc problem

2003-03-02 Thread Ernest E Vogelsinger
At 23:02 02.03.2003, [EMAIL PROTECTED] said: [snip] >Can someone tell me what is wrong with the following code: > >This is code straight out of the PHP manual. I get the error: >Parse error: parse error, unexpected T_SL in testhere.php on line 5 > >I looked