Then yes. You need to open a file for write, write the output to it and then close.
$handle = fopen("/ bigquery.htm", "w"); opens a file to write
$somecontent = "<strong>Heading</strong>";
fwrite($handle, $somecontent); writes some html to the file
fclose($handle); closes the file.
It's probably a good idea to check these function in the manual before you use them. Remeber to set the perm ission for the new file so that they can be served without permissions errors.