[PHP] Why does heredoc fail in this instance?

2002-02-04 Thread Peter J. Schoenster
Hi If I use $snippet = ; and escape the quotes in the block then it works. But if I use it as is below, it fails with no useful error message. Why? Thanks, Peter function GetAddCommentSnippet($args) { $topic_id = $args[id]; $return_page =

Re: [PHP] Why does heredoc fail in this instance?

2002-02-04 Thread mike cullerton
on 2/4/02 11:32 AM, Peter J. Schoenster at [EMAIL PROTECTED] wrote: Hi If I use $snippet = ; and escape the quotes in the block then it works. But if I use it as is below, it fails with no useful error message. Why? not sure if this is it or not, but from the manual

Re: [PHP] Why does heredoc fail in this instance?

2002-02-04 Thread Lars Torben Wilson
On Mon, 2002-02-04 at 10:32, Peter J. Schoenster wrote: Hi If I use $snippet = ; and escape the quotes in the block then it works. But if I use it as is below, it fails with no useful error message. Why? Thanks, Peter This function cut-and-pasted? If so, then you may have fallen