We are running a windows nt4.0 box, informix 9.21 php4.04 and datadirector
for web (informix webblade)
Connecting to the database using ifx_connect() causes mtx.exe to steal
memory and not releasing this memory.
We are not using any ODBC so imho mtx.exe should not start at all.
PHP source of the script:

<?
Header("Content-Type: image/gif");
$conn_id=ifx_connect();
if (! $conn_id)
{ echo(" geen dbase connectie");
}
$browser=getenv("HTTP_USER_AGENT");
$refer=getenv("$HTTP_REFERER");
$rmadr=getenv("$REMOTE_ADDR");
$query_log="INSERT INTO sometable ( fields) VALUES (values);";
$query_banner="SELECT somefield FROM table where value=$bid;";
$res_id_1=ifx_query($query_log,$conn_id);
$res_id_2=ifx_query($query_banner,$conn_id);
$bestandsnaam=ifx_fetch_row($res_id_2);
$theimage="." . $bestandsnaam["path"] . "/" . $bestandsnaam[id] . "." .
$bestandsnaam[ext];
$fn=fopen("./$theimage","r");
fpassthru($fn);
fclose("$fn");

ifx_free_result($res_id_1);
ifx_free_result($res_id_2);
ifx_close($conn_id);
unset($bestandsnaam, $theimage, $fn, $browser, $refer, $rmadr, $query_log,
$querie_banner, $res_id_1, $res_id_2, $conn_id );

?>

Can anyone tell me where this might go wrong?

M!ke



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to