doutan1637 2015-12-10 05:01
浏览 52

致命错误:在第75行的C:\ xampp81 \ htdocs \ test \ inc \ db.php中调用未定义的函数oci_connect()

I want to connect to oracle database, but i got this error :

"Fatal error: Call to undefined function oci_connect() in C:\xampp81\htdocs\test\inc\db.php on line 75."

I already check php.ini file, and there are 2 lines :

;extension=php_oci8.dll      ; Use with Oracle 10gR2 Instant Client
;extension=php_oci8_11g.dll  ; Use with Oracle 11gR2 Instant Client

I already remove the (;)

extension=php_oci8.dll ; Use with Oracle 10gR2 Instant Client

Then I restart the apache, but when I start the apache, I got an error:

"error when start apache the procedure entry point OCIPing could not be located in the dynamic link library OCI.dll"

After that I try to login to my website, then i got an error:

"Fatal error: Call to undefined function oci_connect() in C:\xampp81\htdocs\test\inc\db.php on line 75"

Any solution for this case? I already tried to uncomment the extension=php_oci8.dll , but still have an error.

Thank you.

  • 写回答

1条回答 默认 最新

  • douchuoliu4422 2015-12-28 13:46
    关注

    you can also see this answer from this question

    here is tutorial of installing oci8 drivers for PHP

    https://stackoverflow.com/a/34494636/2125924

    评论

报告相同问题?

悬赏问题

  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大