Skip to content

Instantly share code, notes, and snippets.

Last active Dec 26, 2015
What would you like to do?
$location = '/mnt/hgfs/projects/test.mdb';
$dsn_name = uniqid("dsn_");
Description = Microsoft Access Try DB
Driver = MDBTools
Database = $location
Servername = localhost
$ini_name = '/tmp/' . uniqid ('test_ini_') . '.ini';
file_put_contents ($ini_name, $contents);
putenv ("ODBCINI=${ini_name}");
$conn = odbc_connect("$dsn_name",'','');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment