Posted by JP on 12/06/07 15:26
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
Navigation:
[Reply to this message]
|