Using PHP can I use a JDBC or ODBC connection?

前端 未结 2 745
半阙折子戏
半阙折子戏 2021-01-24 21:18

I have a PHP application that I want to switch from MySQL to Cache DB. I was wondering if I could somehow use a JDBC or ODBC connection since Cache doesn\'t come with a PHP conn

2条回答
  •  一向
    一向 (楼主)
    2021-01-24 21:48

    PHP can use ODBC connections, either directly or through PDO (recommended) using PDO_ODBC.

    PDO is recommended because it's easier to switch between databases if you use it... it's similar in concept to JDBC that way.

提交回复
热议问题