Connect to remote MS Access database from Linux Server using PHP

倖福魔咒の 提交于 2019-12-30 13:00:13

问题


Does anyone know if it's possible to connect and query an MS Access database from a Linux Server using PHP?

If it is possible I'm thinking install ODBC driver on the Linux server, but will it work to connect to Access is the question. I've read it's possible with MSSQL.

My knowledge is very limited when it comes to any Windows related DBs so any advice much appreciated.


回答1:


Yes, it's possible. I've done it using ODBTP, which took advantage of the ODBC driver on the (Windows) machine that hosted the Access database file.

It's also theoretically possible to use an ODBC driver on the Linux server to read an Access database on a Windows networking share if the Linux box can "see" it. However, I've never had very good luck with Access ODBC on Linux so I wouldn't recommend spending too much time trying to get it working.



来源:https://stackoverflow.com/questions/32598327/connect-to-remote-ms-access-database-from-linux-server-using-php

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!