将WordPress连接到Oracle

时间:2016-03-22 07:29:23

标签: php wordpress oracle connection database-connection

我尝试将Oracle数据库连接到Wordpress网站并选择一些表格。但是我没有运气,我收到了这个错误PHP Fatal error: Call to undefined function oci_connect()

我已经在php.ini中注释掉了extension = php_oci8.dll和extension = php_oci8_11g.dll,但仍然遇到同样的错误。

如何解决这个问题?

$tns = "(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = XXXX.XXXX.XXXX.PH)(PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = XXXXXXX.XXXXXX.XX)))";
$dbaseconnection = oci_connect("username","password", $tns);

0 个答案:

没有答案