Why do i get error 500?
<p>for some reason i get error 500 in this file:</p>

<p><a href="http://apps.sce.ac.il/testxml/parser.php" rel="nofollow">http://apps.sce.ac.il/testxml/parser.php</a></p>

<p>this is the <code>phpinfo()</code>:
<strong>http://apps.sce.ac.il/testxml/phpinfo.php</strong></p>

<p>this is the code:</p>

<pre><code>&lt;?php
header("Content-type: text/html; charset=utf-8");

$record = array(
 'event' =&gt; $_POST['event'],
    'eventDate' =&gt; $_POST['eventDate'],
    'desc' =&gt; $_POST['desc'],
);

$doc = new DOMDocument();
$doc-&gt;load( 'events.xml' );

$doc-&gt;formatOutput = true;
$r = $doc-&gt;getElementsByTagName("events")-&gt;item(0);

$b = $doc-&gt;createElement("record");

$event = $doc-&gt;createElement("event");
$event-&gt;appendChild(
    $doc-&gt;createTextNode( $record["event"] )
);
$b-&gt;appendChild( $event );

$eventDate = $doc-&gt;createElement("eventDate");
$eventDate-&gt;appendChild(
    $doc-&gt;createTextNode( $record["eventDate"] )
);
$b-&gt;appendChild( $eventDate );

$desc = $doc-&gt;createElement("desc");
$desc-&gt;appendChild(
    $doc-&gt;createTextNode( $record["desc"] )
);

$b-&gt;appendChild( $desc );
$r-&gt;insertBefore( $b,$r-&gt;firstChild );

$doc-&gt;save("events.xml");

    header("Location: {$_SERVER['HTTP_REFERER']}");    
?&gt;
</code></pre>
