dongmiao4733
2010-02-23 18:19 阅读 60
已采纳

如何使用CentOS启用PDO?

When outputting phpinfo(); I can see that PDO is set to '--disable-pdo' in the Configure Command section. How can I enable this using SSH?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

  • 已采纳
    duandi1636 duandi1636 2010-02-23 18:45

    Try

    pecl install pdo
    

    EDIT:

    If it is already installed try edit

    /etc/php.ini 
    

    Add this line

    ; Extension PDO
    extension=pdo.so
    

    EDIT :

    if you dont have access to php ini try try this in your php aplication

    if (!extension_loaded('pdo')) 
    {
        dl('pdo.so');
    }
    
    点赞 评论 复制链接分享

相关推荐