1 Reply Latest reply: Mar 10, 2011 3:05 PM by FlyingGuy RSS

    Call to undefined function oci_connect

      Somehow I cannot make PHP to work with Oracle extension

      extension=php_oci8.dll is enabled

      my phpinfo():

      System      Windows NT Xxxxx 6.1 build 7600
      Build Date      Nov 8 2007 23:18:08
      Configure Command      cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"
      Server API      Apache 2.0 Handler
      Virtual Directory Support      enabled
      Configuration File (php.ini) Path      C:\WINDOWS
      Loaded Configuration File      C:\wamp\bin\apache\apache2.2.6\bin\php.ini
      PHP API      20041225
      PHP Extension      20060613
      Zend Extension      220060519
      Debug Build      no
      Thread Safety      enabled
      Zend Memory Manager      enabled
      IPv6 Support      enabled
      Registered PHP Streams      php, file, data, http, ftp, compress.zlib
      Registered Stream Socket Transports      tcp, udp
      Registered Stream Filters      convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.*

      Loaded modules:
      core mod_win32 mpm_winnt http_core mod_so mod_actions mod_alias mod_asis mod_auth_basic mod_authn_default mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_dir mod_env mod_imagemap mod_include mod_isapi mod_log_config mod_mime mod_negotiation mod_setenvif mod_userdir mod_php5

      oci8 is not loaded!

      I am using wamp server to maintain apache+mysql+php

      I also have Oracle instant client at C:\instantclient_11_2
      and PATH and TNS_ADMIN variables set to this folder

      I am using Windows 7
        • 1. Re: Call to undefined function oci_connect
          I have never tried this on any version of windows, but in my experience on Linux servers this usually has to do with either:

          path probelms
          permission issues
          environment variables.

          You can try starting and stopping apache and or reviewing the apache logs as most of the time something in there will reference not being able to find the right dll or something.