|
Posted by AnrDaemon on 12/08/07 02:59
Greetings, Richard.
In reply to Your message dated Thursday, December 6, 2007, 21:33:37,
> "JP" <jpsebasti@gmail.com> wrote in message
> news:f9c03885-dfe5-4632-a260-9203a07176cf@w34g2000hsg.googlegroups.com...
>> Anyone see a problem with this code?
>>
>> <?php
>> $login_error=<<<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
> Which of the lines is line 12?
Error said that parser found an unexpected end of file.
Guess there is a problem in heredoc syntax. (haven't used it for ages)
--
Sincerely Yours, AnrDaemon <anrdaemon@freemail.ru>
Navigation:
[Reply to this message]
|