write direct
"; function write_file($filename, $scrivinelfile) { if ($fp = fopen($filename, "w")) { fwrite ($fp, stripslashes($scrivinelfile)); fclose($fp); return 1; } else { return 0; } }; echO"$adesso
"; if ($submitButton == "done") { $poi=eregi_replace(" ","_",$titolo); $filename=strtolower($poi); $doc=nl2br($contents); $scrivinelfile= ""; //print file + header footer function $scrivinelfile.= "$titolo"; $scrivinelfile.= ""; $scrivinelfile.= "

$titolo

"; $scrivinelfile.= "
$doc
"; $scrivinelfile.= "

www.jazzascona.ch
\n"; write_file ("../$filename.html","$scrivinelfile"); $forumdb="../_menu1.txt"; $menu= "\";\n"; $menu.= "}\n"; $menu.= "else {\n"; $menu.= "print\"$adesso :
$titolo
\";\n"; $menu.= "}\n"; $menu.= "?>\n"; $fpn=@fopen($forumdb.".tmp","w"); fputs($fpn,$menu); $fp=@fopen($forumdb,"r"); if($fp<=0) { echo"Error"; } while(!feof($fp)) { $zeile=fgets($fp,32000); fputs($fpn,$zeile); } fclose($fp); fclose($fpn); unlink($forumdb); rename($forumdb.".tmp",$forumdb); } ?>
 TITLE
 TEXT
 SAVE DIRECT (done)

$filename"; ?>
new write