<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Pragma-directive" CONTENT="no-cache">
<META HTTP-EQUIV="cache-directive" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-validate">
<META http-equiv="Cache-Control" content="must-revalidate">
Try any or all of these headers to avoid caching. You can use the normal file system function fopen(), fwrite(), fclose() etc to write output to a file on the server.
-- Rich