Accessing MDB's VIA PHP on Linux (RH8)

Hello there, scoured the interweb for the best half of this morning for a solution, but hit a brick wall.

I need to be able to create an MDB in PHP on a linux webserver using PHP. So far I have installed libodbc and now I need to find a driver for it, or perhaps an easier way of doing this.

The PHP side is fine, I just need to know how to get libodbc to connect to an mdb and be able to select/insert/delete

Thanks.
LVL 2
FuriamAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

FuriamAuthor Commented:
Even a way just to binary write an MDB would be suitable as well, I just need to batch export an MDB once a week.
0
pjedmondCommented:
I'm not sure that there is a suitable linux interface to enable you to work directly with MSAccess mdb files.

Possibly a better solution would be to work with dbf files as they can be relatively easily imported into MS Access.

However...that wasn't the answer you wanted, so I'll give you an interesting avenue to try. It appears that want you wan **IS** possible under WINE/Crossover office:

http://www.kerneltraffic.org/wine/wn20040116_205.txt

Key paragraph is:

---------------------8X-----------------
Well, I do. In the same setup as before, I have been able to use the *native*
odbc32.dll ODBC driver by pulling it from a real Windows instalation and adding
"odbc32"="native,builtin" in the config file. I Installed the psqlodbc driver
from the Postgres database, and retried : selecting "ODBC sources" in the
"Attach tables" dialog box led me to the usual ODBC manager dialogs, where I
have been able to create a DSN to my Postgres database. I have then been able
to "Attach" my Postgres tables and views to an M$ Access database and peruse
them.

---------------------8X-----------------

http://www.codeweavers.com/support/docs/wine-user/config-odbc

may also be of use.

Alternatively, it may be possible to create some form of networked ODBC connection with the mdb hosted on a windows system.

Unfortunately my main experience with this is using java, and that works very nicely on a linux platform!:)

HTH:)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
FuriamAuthor Commented:
Wow, talk about 'round the houses' job that one :)

Points are yours if I get nothing direct.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.