do:
$my_msg = "Your msg here";
$my_msg2 = "Your msg 2nd here";
$my_file = fopen("file.html");
$my_file2 = fopen("file2.html");
$fputs($my_file, $my_msg);
and on..
$fclose($my_file)
then...
put a php script inbenneath here
fputs($my_file2, $my_msg2)
and on again..
$fclose($my_file2)
I'm only guessing on your question. I know this will/won't work