|
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
Navigation:
[Reply to this message]
|