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

前端 未结 3 450
余生分开走
余生分开走 2021-01-19 12:02

I am using a shared hosting through CIPL.in. They use cpanel. I am trying to deploy a ZEND app on my website. However it keeps giving the error.

An error oc         


        
3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-19 12:23

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

    I hope this works

提交回复
热议问题