Page 1 of 1

Apache shutsdown when trying to get data via ODBC

PostPosted: 12. January 2005 10:13
by BorO
Hello!

I need som help to find my troublemaker. I'm running the latest XAMPP on WindowsXP.

After installing XAMP I tried to run my PHP script that connects to an ODBC source and lists some data nad it works. But after erstarting XAMPP first time I get APACHE errors. A window popsUp with following message:
I'm translating swedish :)

Wrong application apache.exe, version 2.0.52.0, wrong modul unknown, version 0.0.0.0, wrong adress 0x0599aa50.

I'm getting that every time I'm trying to run the script.
Remember, everithing works fine after new install ox XAMPP, bat after restarting it once the apache starts to generate the error message.

I hope someone can help.

Best regards, Boris

PostPosted: 12. January 2005 10:16
by BorO
Code: Select all
<?
# ansluter till databasen
$conn=odbc_pconnect('Source','pass','',SQL_CUR_USE_ODBC);

if (!$conn)
{   
   # gick inte att ansluta
   exit("Kunde inte ansluta till databasen: " . $conn);
}


# stänger ner anslutningen
odbc_close($conn);
?>



It seems to work fine without closing the connection on end but isn't that wrong?

Please help!