kstsca
V2EX  ›  问与答

PHP 如何连接 Oracle 我要这货搞疯了 win 平台。我以为 PHP.INI ext oci8 开启就可以了。。

  •  
  •   kstsca · Jul 22, 2014 · 5239 views
    This topic created in 4311 days ago, the information mentioned may be changed or developed.
    Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--with-snapshot-template=d:\php-sdk\snap_5_2\vc6\x86\template" "--with-php-build=d:\php-sdk\snap_5_2\vc6\x86\php_build" "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared" "--without-pi3web"
    Server API Apache 2.0 Handler
    Virtual Directory Support enabled
    Configuration File (php.ini) Path C:\WINDOWS
    Loaded Configuration File E:\www\php-5.2.14-Win32\php-apache2handler.ini
    7 replies    2014-07-22 12:03:11 +08:00
    xiaojj
        1
    xiaojj  
       Jul 22, 2014
    试试pdo,虽然我没用过
    ChiChou
        2
    ChiChou  
       Jul 22, 2014
    多半是环境变量的问题。LZ 不把详细的报错贴上来谁看得懂?
    kstsca
        3
    kstsca  
    OP
       Jul 22, 2014
    @xiaojj
    @ChiChou 就是ext oci8.dll 不加载。。。倒置oic8函数找不到。。。windwos放PHP.INI 32放,都没用。。
    fuxkcsdn
        4
    fuxkcsdn  
       Jul 22, 2014
    @kstsca 既然提示不加载,到日志记录的.dll文件夹去找找看是否存在
    存在的话,把php日志等级调到debug,再重启一下apache看看详细的错误日志
    Niphor
        5
    Niphor  
       Jul 22, 2014
    dll加载不起来,也有可能是版本和PHP的版本不匹配,
    如果是用的自带的,那么看看ext的路径正确么?其它ext能加怎么?
    koy1619
        6
    koy1619  
       Jul 22, 2014
    以前搞过centos下的安装http://linux48.com/archives/69 windows没研究过,不过可以参考
    ChiChou
        7
    ChiChou  
       Jul 22, 2014
    @kstsca 检查环境变量,不过不是 PATH,具体是啥我忘了。这个问题我以前就折腾过……
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1037 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 19:26 · PVG 03:26 · LAX 12:26 · JFK 15:26
    ♥ Do have faith in what you're doing.