Location: PHPKode > projects > DebWeb GUI > debwgui/edit_file.php
<?php
$loadcontent = "changelog.txt";
   if($save_file) {
       $savecontent = stripslashes($savecontent);
       $fp = @fopen($loadcontent, "w");
       if ($fp) {
           fwrite($fp, $savecontent);
           fclose($fp);
}
}
   $fp = @fopen($loadcontent, "r");
       $loadcontent = fread($fp, filesize($loadcontent));
       fclose($fp);

?>
<form method=post action="<?=$_SERVER[PHP_SELF]?>">
<textarea name="savecontent" cols="100" rows="35"><?=$loadcontent?></textarea>
<br>
<input type="submit" name="save_file" value="Lagre">
</form><br>

<a href="/">Tilbake</a>
Return current item: DebWeb GUI