使用XAMPP阻塞对未定义函数oci_connect()的调用 [英] Stuck Call to undefined function oci_connect() using XAMPP

查看:422
本文介绍了使用XAMPP阻塞对未定义函数oci_connect()的调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将PHP连接到Oracle Database 12c,我已经在此视频中进行了尝试 https://www.youtube.com/watch?v=KJme5JMxKeo

i'm want connect PHP to Oracle Database 12c, i'm already try in this video https://www.youtube.com/watch?v=KJme5JMxKeo

  • 我已经安装了xampp v3.2.2并使用PHP 5.6

  • i'm already install xampp v3.2.2 and using PHP 5.6

安装oracle数据库12c: http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html

install oracle database 12c : http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html

在SQLPlus中测试登录

test login in SQLPlus

解压缩并粘贴Instant Client(版本12.1.0.2.0) http://www.oracle.com/technetwork/topics/winsoft-085727. html 到目录C

unzip and paste Instant Client(Version 12.1.0.2.0) http://www.oracle.com/technetwork/topics/winsoft-085727.html to directory C

设置路径环境 C:\ instantclient_12_1;

分号(;) extension = php_oci8_12c.dll

,并且已经在这里下载了php_oci8_12c.dll文件: http: //pecl.php.net/package/oci8/2.0.8/windows

and already download php_oci8_12c.dll file in here : http://pecl.php.net/package/oci8/2.0.8/windows

并已粘贴到 C:\ xampp \ php \ ext

当我测试脚本连接时: http://pastebin.com/f1isKKar

when i test script connect : http://pastebin.com/f1isKKar

错误消息:调用未定义的函数oci_connect()

error message : Call to undefined function oci_connect()

我很困惑为什么无法连接到ORACLE DATABASE 12c:(

i'm confused why can't connect to ORACLE DATABASE 12c :(

推荐答案

您非常亲密.

  1. 从C:\ instantclient_12_1将oci.dll,oraociei12.dll和oraons.dll添加到xampp/apache/bin文件夹中.替换现有的.

  1. Add oci.dll, oraociei12.dll, and oraons.dll from C:\instantclient_12_1 to xampp/apache/bin folder. Replace the existing ones.

重新启动Apache

Restart the Apache

N.B:确保将PATH环境变量设置为此文件夹"C:\ instantclient_12_1".

N.B: Make sure that your PATH environment variable are set to this folder "C:\instantclient_12_1".

这篇关于使用XAMPP阻塞对未定义函数oci_connect()的调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆