php載入pdo,該如何處理

來源:互聯網
上載者:User
php載入pdo
快點幫幫忙呀,我遇到一個棘手問題,線上等待回答
就是php載入pdo.dll,pdo_pgsql問題,我再xp下運行正常,但是我在2003下配置php運行項目總是提示我
1exception 'Zend_Db_Adapter_Exception' with message 'The PDO extension is required for this adapter but the extension is not loaded' in E:\scispg\library\Zend\Db\Adapter\Pdo\Abstract.php:107 Stack trace: #0 E:\scispg\library\Zend\Db\Adapter\Abstract.php(414): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 E:\scispg\library\Zend\Db\Adapter\Pdo\Abstract.php(220): Zend_Db_Adapter_Abstract->query('select * from u...', Array) #2 E:\scispg\library\Zend\Db\Adapter\Abstract.php(641): Zend_Db_Adapter_Pdo_Abstract->query('select * from u...', Array) #3 E:\scispg\application\modules\default\models\User.php(26): Zend_Db_Adapter_Abstract->fetchAll('select * from u...') #4 E:\scispg\application\modules\default\controllers\IndexController.php(46): Model_User->select('926212', '1111111') #5 E:\scispg\library\Zend\Controller\Action.php(503): IndexController->loginAction() #6 E:\scispg\library\Zend\Controller\Dispatcher\Standard.php(285): Zend_Controller_Action->dispatch('loginAction') #7 E:\scispg\library\Zend\Controller\Front.php(934): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #8 E:\scispg\public\index.php(35): Zend_Controller_Front->dispatch() #9 {main}

我看看phpinfo()裡沒有pdo模組和pdo_pgsql模組,可是我已經都配置了,在我自己機子上也能運行,完全相同的php.ini檔案拷貝過去就是載入不上,對應的.dll我也拷貝到system32裡了,還是不行
請幫忙呀

------解決方案--------------------
你裝一個Integration Environment的好了像什麼appserv之類的
------解決方案--------------------
需要拷貝php根目錄下面的libpq.dll檔案至system32
------解決方案--------------------
我前幾天才配置成功過一台win2003下IIS整合PHP 5.2.11,而且沒有向系統中拷貝任何檔案。
1.web服務擴充和網站映射ISAPI中添加php副檔名就不用說了吧;
2.系統內容變數(右鍵我的電腦-》屬性-》進階-》環境變數-》系統變數)中添加變數PHPRC值就是“c:\php”(你的php所在目錄);
3.系統內容變數的變數Path的值中添加“c:\php”和“c:\php\ext”。

php.ini還是放在php目錄下,你試試看。

你的情況也有可能系統載入的並不是你所修改的哪個php.ini
------解決方案--------------------
還有,修改了配置要記得重啟一下web服務再試。
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.