duanbinmi8970 2014-04-27 14:49
浏览 62

无法使用PHP连接到oracle

I've searched everywhere in google for a solution but I'm still unable to connect to oracle using PHP.

I have the following in my php file

$conn = oci_connect("username","password", "sid");

However, when ever I try and access the php page, I am getting the same error

Fatal error: Call to undefined function oci_connect() in C:\xampp\htdocs\consult.php on line 5.

In XAMPP folders I've looked at the php.ini file and removed the leading semicolon so that I'm left with extension=php_oci8_11g.dll.

I restarted XAMPP, and I'm getting oci8.dll doesn't exist. I then downloaded oracle instant client but I'm slightly confused as to which folder it is supposed to be placed in.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
    • ¥15 ubuntu虚拟机打包apk错误
    • ¥199 rust编程架构设计的方案 有偿
    • ¥15 回答4f系统的像差计算
    • ¥15 java如何提取出pdf里的文字?
    • ¥100 求三轴之间相互配合画圆以及直线的算法
    • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
    • ¥15 名为“Product”的列已属于此 DataTable
    • ¥15 安卓adb backup备份应用数据失败
    • ¥15 eclipse运行项目时遇到的问题