1. delete the content of a file (or just delete the file and make a new one if it's easier)
unlink ($filename);
system ("echo \"\" > filename");
2. read the content from a file
$fp = fopen($filename, "r");
$string = fgets ($fp);
3. write new data to a file via an input box
the contents of the input box are passed via the POST or GET mechanism of the HTTP transfer
get the passed values like $_REQUEST['idname']
fwrite ($fp, $_REQUEST['idname'], strlen($_REQUEST['idname']));
4. run a command on the server
system ("echo \"\" > filename");
----------
T74marcell
Arch Linux