dsn-less connection , php to a ms-access database in linux
Posted: Tue Jun 12, 2007 6:30 am
Hi
My first post here. I created a small project using php+ms access+apache under windows and used the following code to connect to the access database
We have now moved to a linux server which obviously wont support the above code as it uses COM. Is there any way to create dsn-less connection to access database under linux using php?
Thanks & Regards
JayaKrishnan
My first post here. I created a small project using php+ms access+apache under windows and used the following code to connect to the access database
Code: Select all
$db_conn = new COM("ADODB.Connection");
$connstr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=". realpath("./auth.mdb").";";
$db_conn->open($connstr);Thanks & Regards
JayaKrishnan