2

How to connect to access data base from php 5.3.4 without using odbc connection?

1
  • Before going down this road, you should seriously why you think Jet/ACE is a suitable back end for a web app -- it is not, in my opinion, as it was not designed for that purpose (there are threading issues and other things that make it problematic for anything other than the simplest applications). Commented Apr 3, 2011 at 16:16

1 Answer 1

5

The literal answer to your question, connecting to Access using something other than ODBC is to use OLEDB. See PHP-OLEDB.

If your problem is that you're running PHP on a platform that doesn't have JET ODBC drivers (i.e., not Windows) then you should probably consider using SQLite or more Linux-friendly embedded databases.

If you're dead-set on accessing a JET database from Linux, then take a look at mdbtools.

Sign up to request clarification or add additional context in comments.

2 Comments

I don't have choice about the db type because the company have other application using this access common db and about the machine it's a windows machine but the problem is with the X64 ODBC drivers
@Mario There are now 64-bit ODBC drivers microsoft.com/downloads/en/… if that doesn't solve your problem try something like information-management-enabled.blogspot.com/2005/11/… but perhaps in reverse.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.