You are here: Re: HEREDOC help, going quietly nuts « PHP Programming Language « IT news, forums, messages
Re: HEREDOC help, going quietly nuts

Posted by lawrence k on 10/20/07 16:35

On Oct 20, 11:44 am, bill <nob...@spamcop.net> wrote:
> with this code:
> $title = stripslashes($row['title']);
> $depends = stripslashes($row['depends']);
>
> $detail<<<eoxd
> <form action="do_detail_save.php" method="post">
> ...
> eoxd;
> ----------------------------
> (the elipses (...) represent code left out of the posting
>
> I get the compile error:
> Parse error: syntax error, unexpected T_START_HEREDOC in ....at
> line 54.
>
> line 54 is the line after: $detail<<<eoxd
>
> I can't see an error. If I put an echo statement just before the
> heredoc there is no compile error, so I presume that the script
> is ok up to that place.


Don't you need an equal sign?



$detail = <<<eoxd

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация