My company uses Mas90 software which connects to an ODBC database that only uses a 32bit driver. I am trying to create a web page that will connect to this database to update our website. The issue that I am running into is that we use 64bit computers and the browser seems to only want to connect to 64bit drivers. Here is the code we are using:
<?php
$conn = new COM("ADODB.Connection");
$conn->open("DSN=MasSystemDSN;UID=USER|COMPANY;PWD=PASS;Directory=\\server\MAS 90\MAS90;SERVER=NotTheServer;");
?>
I get this error:
( ! ) Fatal error: Uncaught exception 'com_exception' with message 'Source: Microsoft OLE DB Provider for ODBC Drivers Description: [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application' in C:\wamp\www\Product Integration\TestMas.php on line 4 ( ! ) com_exception: Source: Microsoft OLE DB Provider for ODBC Drivers Description: [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application in C:\wamp\www\Product Integration\TestMas.php on line 4
I know about the 32bit ODBC driver manager residing at SysWow64 rather than the 64bit manager at System32. I have seen many similar questions of this type where the solution is to delete the 32bit DSN and create a 64bit DSN. Unfortunately that is not an option for me as there is no driver for a 64bit DSN available for my database.
So is there a way to write my code so that it runs the 32bit drivers? Or a way to run the browser so that it will run the 32bit drivers? Any other ideas? Thank you.