According to the PHP documentation fopen will create a file that it is directed to open with write access if it doesn't exist... It may be my current host, or I may be doing it wrong, but it doesn't work.
$path = "/my/path/here/";
$file = "arbitrary_alphanumeric_filename";
$report = fopen($path.$file.".html", "a");
I'm doing that right am i?