Why does PHP still fail to load the oci8 extension while enabling the extension?

Source: Internet
Author: User

Why does PHP still fail to load the oci8 extension while enabling the extension?

The oci8 extension of PHP is enabled, but the var_dump (get_loaded_extensions () Printing still does not show the oci8, pdo_oci, pdo_odbc extension.

You can download the package from the oracle website, decompress the package, and modify the environment variables of the system.

Finally, install OracleDatabaseInstantClient11g11.2.0.3.0 x64.

OracleDatabaseInstantClient11g11.2.0.3.0 x64 is an integrated installation package developed by CSDN for Daniel.




I installed WampServer. When I open the php oci8_11g extension, I always report an error. What can be done? The error is as follows:

First, make sure that the path configured in php. ini is extension_dir = 'd:/wamp/bin/php/php5.3.10/ext /"
Check whether d:/wamp/bin/php/php5.3.10/ext/php_oci8_11g.dll exists.

----------------------------------------
Refer to my Configuration:
Extension_dir = "d:/wamp/php/ext /"
Php_oci8.dll path: D: \ wamp \ php \ ext \ php_oci8.dll

Php cannot load the oci8 module, and cannot connect to the oracle database. phpini is also configured, And the oracle Real-time client is also installed.

The php version does not match your oracle version. You can use phpstudy to integrate the package. The php version can be switched freely. In the menu php extension, the extension is automatically enabled when oci8 is checked. Convenient Extension Management.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.