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 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
    • ¥15 错误 LNK2001 无法解析的外部符号
    • ¥50 安装pyaudiokits失败
    • ¥15 计组这些题应该咋做呀
    • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
    • ¥15 让node服务器有自动加载文件的功能
    • ¥15 jmeter脚本回放有的是对的有的是错的
    • ¥15 r语言蛋白组学相关问题
    • ¥15 Python时间序列如何拟合疏系数模型
    • ¥15 求学软件的前人们指明方向🥺