【发布时间】:2013-06-17 07:06:13
【问题描述】:
我正在尝试从 PHP 访问 ORACLE 数据库,我使用的是 WampServer 2.2 版 Apache 2.4.2 – PHP 5.4.3 和 oracle 11g。我尝试了很多方法,包括:
<?php
if ($conn = oci_connect('sys as sysdba', '12345', '//localhost/orcl'))
{
print 'Successfully connected to Oracle Database!';
}
else
{
$errmsg = oci_error();
print 'Oracle connection failed' . $errmsg['message'];
}
?>
每次执行时都会出现以下错误:
Fatal error: Call to undefined function OCILogon() in C:\wamp\www\IDS\Index.php on line 3
有人知道怎么解决吗?
【问题讨论】:
-
我做到了,但我没有得到任何好的答案....我会检查链接:)'
标签: php database oracle11g wampserver oci8