ORACLE 12c + PHP 5.6.13 (Win32) -无法加载php_pdo_oci.dll


ORACLE 12c + PHP 5.6.13 (Win32) - cannot load php_pdo_oci.dll

Database-Server: ORACLE 12c

App-Server: Windows NT SERVER1 6.3 build 9200 (Windows Server 2012 R2 Standard Edition) i586

Apache:

Apache/PHP/5.6.13 2.4.16 (Win32)

PHP:

php-5.6.13-Win32-VC11-x86

使用这些组件,我尝试执行这个小php脚本,并得到这个警告:
<?php
    foreach(PDO::getAvailableDrivers() as $driver)
      {
      echo $driver.'<br />';
      }  
?>
Warning: PHP Startup: Unable to load dynamic library 'C:/Program Files (x86)/php-5.6.13-Win32-VC11-x86/ext'php_pdo_oci.dll' - %1 ist keine zulässige Win32-Anwendung.
 in Unknown on line 0

目前为止的翻译:%1是不允许的Win32-Application

问题:PHP 5.6.13 (Win32)无法加载ext/php_pdo_oci.dll库,因为"this list no Win32- application " ?

不知道怎么了

只是为了结束这个问题的解决方案。

32位PHP需要32位Oracle客户端

要检查oracle客户端安装了什么,使用tnspring与这个小的windows脚本(CMD)。myoracledb奥拉条目。

tnsping myoracledb
pause

结果应该是这样的…

    TNS Ping Utility for 32-bit Windows: Version 12.1.0.1.0 - Production on 28-SEP-2015 10:51:44
    Copyright (c) 1997, 2013, Oracle.  All rights reserved.
[...]

. .对于32位Windows或…