php_oci8 not loading on wamp server 2.0?

2019-07-16 16:18发布

I enabled the extension on wamp (Screenshot) but I still get this error:

Fatal error: Call to undefined function oci_connect() in C:\wamp\www\wp1\wp-content\plugins\hrf\tmp.php on line 4

How can I solve this problem?

Thank you.

标签: php wamp oci
1条回答
ゆ 、 Hurt°
2楼-- · 2019-07-16 16:26

Uninstall WAMP, Install ZendServer Community edition.

Maybe it is not a right answer for your question, but it definitely works.

ZendServer is most stable PHP stack.

But if you want to keep WAMP, try this:

make sure you have enabled

extension=php_oci8.dll

in your php.ini file (or any included ini file) Best option is run

phpinfo()

It will tel you all you need to know.

Next thing to note is that php_oci8.dll has dependancy on other DLLs, on my installation it reference oci.dll from OracleInstant Client.

查看更多
登录 后发表回答