I get a wierd error randomly (occuring about every 10 or so times) when i execute the following function..
function make_audit_printable ($conn, $casenum, $timescale,$actiontype, $usertoquery) {
/* generate new file name */
$fname = "audit_".(date("hisA_dmY")).".html" ;
/* header */
$header = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>
</head> YARR THIS BE THE HEADER';
/* grab all the content info from the audit table */
/* content */
$content = 'YARRR !!! --- dynamic content --- ';
/* footer */
$footer = 'blargghhhh';
/* write out to file */
$filepath = "./files/tmp/$fname";
$fp = fopen($filepath,"w");
fwrite($fp, $header.$content.$footer);
fclose($fp);
return ($filepath);
}
this function creates a printable version of the current audit table. It then forces the download of the html file using a script that ive used before (So therefore am thinking its not the problem)
Can anyone see something that might make Apache crash?
The file is always new as well.. so it gets created in the /files/tmp folder and then gets deleted.. and so on and so on....
anyone seen anything like this before?
Amos
Oh yeh env is Apache 1.3.24, PHP 4.20 on a 2k machine with ORACLE8i
thanks in advance..