Apache shutsdown when trying to get data via ODBC

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Apache shutsdown when trying to get data via ODBC

Postby BorO » 12. January 2005 10:13

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
BorO
 
Posts: 2
Joined: 12. January 2005 09:52

Postby BorO » 12. January 2005 10:16

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!
BorO
 
Posts: 2
Joined: 12. January 2005 09:52


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 77 guests