我一直在将 RedBeanPHP 用于许多项目的 ORM,但我目前正在使用的网络主机不支持 PDO。由于 RedBeanPHP 需要 PDO,所以我不能使用它。
是否有不使用 PDO 的 MySQL 的 PHP ORM?
我一直在将 RedBeanPHP 用于许多项目的 ORM,但我目前正在使用的网络主机不支持 PDO。由于 RedBeanPHP 需要 PDO,所以我不能使用它。
是否有不使用 PDO 的 MySQL 的 PHP ORM?
I agree the real answer is you need to move hosting providers. If they don't offer a php build with pdo enabled, I can only image what other issues they have.
The answer you're looking for however will vary based on what type of DB libraries you are allowed... mysql, mysqli, mdb2, adodb, etc...
Most likely, you'll need to find an older version of an ORM, back in the day when they allowed you to specify if you wanted to use mysqli or pdo.
However, until we know what you have, no one can answer your question fully.
Run php -m
on the command line and paste the result into the question so we can see what options you have.