# Connecting to microsoft access back end on local machine

**URL:** <https://www.phphelp.com/t/connecting-to-microsoft-access-back-end-on-local-machine/31384>\
**Category:** General PHP Help\
**Created:** [March 26, 2020, 2:44pm UTC](https://www.phphelp.com/t/connecting-to-microsoft-access-back-end-on-local-machine/31384 "2020-03-26T14:44:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vba\_php](https://www.phphelp.com/user_avatar/www.phphelp.com/vba_php/32/3469_2.png) [@vba\_php](https://www.phphelp.com/u/vba_php)\
**Post date:** [March 26, 2020, 2:44pm UTC](https://www.phphelp.com/t/connecting-to-microsoft-access-back-end-on-local-machine/31384/1 "2020-03-26T14:44:12Z")

</div>

does anyone here know of any connection strings or relevant drivers I need installed in order to do this? I’ve got a pretty unique situation where I have an ms access database that must be stored on a local machine and connected to via PHP code on a webpage. does anyone know if this is even possible? I’ve searched for quite a while now but have not found anything, although some solutions have come close.

thanks.

---

<div class="post-metadata">

**Author:** ![astonecipher](https://www.phphelp.com/user_avatar/www.phphelp.com/astonecipher/32/2797_2.png) [@astonecipher](https://www.phphelp.com/u/astonecipher)\
**Post date:** [March 26, 2020, 3:35pm UTC](https://www.phphelp.com/t/connecting-to-microsoft-access-back-end-on-local-machine/31384/2 "2020-03-26T15:35:52Z")

</div>

It’s possible, but not fun.

[https://www.connectionstrings.com/microsoft-access-accdb-odbc-driver/](https://www.connectionstrings.com/microsoft-access-accdb-odbc-driver/)

You will need to set up port forwarding on the router to direct requests to the computer holding the Access mdb, but PDO should be able to handle the querying.

> <https://stackoverflow.com/questions/19807081/how-to-connect-php-with-microsoft-access-database>

---

<div class="post-metadata">

**Author:** ![vba\_php](https://www.phphelp.com/user_avatar/www.phphelp.com/vba_php/32/3469_2.png) [@vba\_php](https://www.phphelp.com/u/vba_php)\
**Post date:** [March 26, 2020, 3:48pm UTC](https://www.phphelp.com/t/connecting-to-microsoft-access-back-end-on-local-machine/31384/3 "2020-03-26T15:48:01Z")

</div>

thanks astone. I called my hosting provider too, and made sure that all of the extensions were turned on for PDO and ODBC, in case that was relevant. which I believe it is. I’ll get back to you if I have issues.
