Neden ben hata 500 alıyorum?

0 Cevap

nedense ben bu dosyada hata 500 olsun:

http://apps.sce.ac.il/testxml/parser.php

this is the phpinfo(): http://apps.sce.ac.il/testxml/phpinfo.php

bu kodu:

<?php
header("Content-type: text/html; charset=utf-8");

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

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

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

$b = $doc->createElement("record");

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

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

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

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

$doc->save("events.xml");

    header("Location: {$_SERVER['HTTP_REFERER']}");    
?>

0 Cevap