Hallo,
mit meinem PHP-Script möchte ich eine xml-Datei erstellen lassen:
<?php
$nickname = isset($_GET['nick']) ? $_GET['nick'] : null;
$password = isset($_GET['pw']) ? $_GET['pw'] : null;
$email = isset($_GET['mail']) ? $_GET['mail'] : null;
$xml = "<"."?xml version='1.0' encoding='ISO-8859-1' ?".">";
$content = "<user>
<name>$nickname</name>
<password>$password</password>
<email>$email</email>
<verified>true</verified>
<aktivated>true</aktivated>
<penaltyDesc>-</penaltyDesc>
<userstate>0</userstate>
<openSecuredArea>true</openSecuredArea>
<autoSupport>false</autoSupport>
</user> ";
if(file_exists("../xml/users/".$nickname.".xml"){
}else{
$newFile = fopen("../xml/users/".$nickname.".xml", "w");
fwrite($newFile, $xml.$content);
fclose($newFile);
}
?>
Aber es funktioniert nicht, keine PHP-Warnung oder -Fehler.
Kann mir irgendwer helfen?
Gruß