Fatal error: Call to undefined function oci_connect()

后端 未结 3 1276
青春惊慌失措
青春惊慌失措 2020-11-29 13:24

I have the next lines uncommented (in my php.ini):

extension=php_oracle.dll 
extension=php_oci8.dll

And I downloaded this file instan

3条回答
  •  眼角桃花
    2020-11-29 13:56

    Things to check:

    • You don't need to set LD_LIBRARY_PATH nor ORACLE_HOME. However, you need to add D:\instantclient_11_2 to the PATH environmental variable and restart the computer so changes apply.

    • Before configuring PHP, check that your Oracle client libraries actually work (for instance, try to connect with SQL Developer).

    • Comment out the extension=php_oracle.dll. It belongs to the old and deprecated Oracle extension.

    • Double check that the php_oci8.dll file is really at c:\php\ext\php_oci8.dll?

提交回复
热议问题