问题
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.
回答1:
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.
来源:https://stackoverflow.com/questions/9955767/php-oci8-not-loading-on-wamp-server-2-0