All you have to do is make a directory that you can read a write to that is accesable from the web. Then in your PHP code, do this:
#This is where the file is located on your server.
$file = "/usr/home/username/public_html/dir/htmlfile.html";
#This checks to see if the file exits.
if(!$file){
#If the file was not found, create the file.
$fp = fopen($file,"w");
}
else {
#If the file was found open the file for appending.
$fp = fopen($file,"a");
}
#Write the information to the file
fwrite($fp,$theinfo);
#Close the file
fclose($fp);
This will check to see if the file exists and if it dosen't, it will create it, then it will write the information you want. Of course, you have to set your own variables. Hope this is what you were looking for!