I'm having a similar problem here too. I have an MsAccess database on a WinXP computer and PHP running on a linux machine. Afters hours of trail&error I don't find a way to let my PHP script connect with the access database.
System DNS is set up and works fine, tried the comments on php.net too (regedit and change path to network path, .. ), but none off them were successfull.
Normally I wouldn't use MsAccess as database but it's for a db migration..
what do you mean by "odbc commands"? I've installed unixODBC on the linux server so odbc is supported... I use odbc_connect() to make the connection (but that doesn't work.. )
I don't think windows works with permissions, so guess this is not an issue. (?)
Correct, the database is on a different machina. I'll explain the situation a little more..
1. WinXP computer with MsAccess database
2. Linux (Mandrake) server with php/mysql/..
2 needs to connect to 1, retrieve the data stored in the MsAccess database and put it in the mysql on 2. The scenario (=script) works fine when everything is on the same machine.. too bad this isn't the real situation..
***) I'v made a System-DNS via the windows control pannel.
- Name: vlor_gebruikers
- Driver: Microsoft Access Driver (*.mdb)
- Then changed the path via regedt32 to \\192.168.1.105\vlor_db\Gebruikers.mdb (See:
***)
To connect with it I have:
function dbODBCConnect() {
$odbc_naam = "\\\\192.168.1.105\\vlor_db\\Gebruikers.mdb";
$connectie = @odbc_connect($odbc_naam,'','');
return $connectie;
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.