mtx.exe....acts like cookie monster...
| From: | Mike | Date: | Wed, 11 Apr 2001 11:44:25 +0000 |
| Subject: | mtx.exe....acts like cookie monster... | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-6630@lists.php.net to get a copy of this message | ||
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