I have a short php file that writes to an HTML file, but each time I use it, there's an error: "parsing error at line 21"
<?php
$fileHandle = fopen("../includes/events.html", "w");
$e1Name = $_GET["e1Name"];
$e2Name = $_GET["e2Name"];
$e1Desc = $_GET["e1Desc"];
$e2Desc = $_GET["e2Desc"];
$eventString = <<<EOD
<b>$e1Name</b> <br>
<i>$e1Desc</i> <br>
<b>$e2Name</b> <br>
<i>$e2Desc</i>
EOD;
fwrite($fileHandle, $eventString);
fclose($fileHandle);
?>
No matter what I do, there's always a parsing error after the last line, any ideas?