yeah, that's pretty simple php
shouldn't take you long at all to research the necessary commands
some code I have for writing files
<?php
include "funcs.inc";
$loggedIn = validSID();
if ($loggedIn == false)
{
header("Location: [url]http://localhost/apia/main/update.php\n\n[/url]");
exit;
}
$writeme=fopen("../data/$working","w");
$message = trim($message);
fputs($writeme, $message);
fclose($writeme);
header("Location: ". $HOSTPATH ."main/update.php\n\n");
?>
Goodluck and enjoy learning PHP.