2015-05-22 54 views
0

我無法訪問oracle oci_connect wamp。我修改了php.ini並添加了oracle instantclient_12_1。 phpinfo文件已啓用oci,但我無法訪問oci_connect方法。我試圖通過oci_connect方法訪問遠程oracle服務器。PHP Oracle連接undefined

+0

你會得到什麼錯誤? – sheshadri

+0

致命錯誤:調用未定義的函數oci_connect() – HeshanKit

回答

0
  1. Verify php.ini file inside php as well as apache folder they are fine for OCI configuration. Make sure they are not commented.

  2. The oci*.dlls are also present in php/ext folder.

  3. Also verify in wamp PHP extensions - php_oci8 is enabled.

一旦全部完成restart Wamp和OCI應該工作正常。

+0

謝謝CloudFreezer, 通過改變轉已有的Apache的php.ini和PHP的php.ini, php_oci8.dll,php_oci8_11g.dll試過, WAMP OCI啓用(與作者一起在phpinfo()上展示) – HeshanKit