Using PHP can I use a JDBC or ODBC connection?

前端 未结 2 737
半阙折子戏
半阙折子戏 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.

    0 讨论(0)
  • 2021-01-24 22:00

    Probably not the most efficient method, but take a look at the PHP-Java Bridge http://php-java-bridge.sourceforge.net/pjb/

    0 讨论(0)
提交回复
热议问题