How to check if PDO support is enabled in my Apache Installation?

一曲冷凌霜 提交于 2019-12-01 19:15:15

The configure command in your PHP output shows:

'--disable-pdo'

so I think it's safe to assume that they haven't enabled it.

if (!defined('PDO::ATTR_DRIVER_NAME')) {
echo 'PDO unavailable';
}
elseif (defined('PDO::ATTR_DRIVER_NAME')) {
echo 'PDO available';
}

I hope this works

Does this application want Pdo_Mysql? If so you may be able to use the Mysqli adapter instead - it depends on the software but it's possible.

In the area where you set your database connection details, there's probably an option called 'adapter'. Try setting its value to 'mysqli'

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