Reply to Re: heardoc problem

Your name:

Reply:


Posted by Rik Wasmus on 12/06/07 19:11

On Thu, 06 Dec 2007 16:26:24 +0100, JP <jpsebasti@gmail.com> wrote:

> Anyone see a problem with this code?
>
> <?php
> $login_error=3D<<<EOL
> <html>
> <head><title>Database Login Error</title></head>
> <body>
> <b>Database Login Error<br><br></b>
> </body>
> </html>
> EOL;
> echo "$login_error";
> ?>
>
> When I attempt to run it at the command line
> C:\ php t.php
>
> I get the following error:
> PHP Parse error: syntax error, unexpected $end in C:\Sebastian\pbuuc
> \auction\t.php on line 12

No errors running a copy / paste of the code here. Are you sure this is =
=

exactly as it is in the file? There should be no whitespace whatsoever =

before the EOL;, which is quite a common mistake when one want to proper=
ly =

indent code...
-- =

Rik Wasmus

[Back to original 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

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