1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27: | <?php
$datei="datenbanken/neu.xml";
$alt=fread($zeiger,filesize($datei));
?>
<form action="<?php $PHP_SELF ?>">
<textarea name="eingabe" cols="100" rows="20">
<?php echo $alt; ?>
</textarea>
<input type="submit" value="Abschicken">
</form>
<?php
if (isset($eingabe)) {
fclose(fopen($datei,"w"));
$zeiger=fopen($datei,"r+");
$eingabe=htmlspecialchars($eingabe);
$eingabe=stripslashes(nl2br($eingabe));
fputs($zeiger, "$eingabe");
fclose($zeiger);
readfile($datei);
}
?> |