This topic is locked

64 bit MS Access - dbcommon.php

11/9/2011 8:14:28 AM
PHPRunner General questions
G
gluckett author

Hi All,

Every time I build my project I have to modify the dbcommon.php from:
{Microsoft Access Driver (.mdb)

to

{Microsoft Access Driver (
.mdb, *.accdb)
So that my 64 bit server can see MS Access.
Is there a way to permanently do this so I don't have to go back and tweak this every time?
thanks

gordon

C
cgphp 11/9/2011

Override the value in the "After application initialized" event (http://xlinesoft.com/phprunner/docs/after_application_initialized.htm).

G
gluckett author 11/9/2011

So in the AfterAppInit I can add:
$ODBCString = "Driver={Microsoft Access Driver (.mdb, .accdb)};DBQ=E:\\GIS_DATA\\DBMS\\DATA.mdb;Uid=;Pwd=";
and this will override the regular $ODBCString found in dbcommon.php?