Re: #17002 [Com]: Unable to load php_oci8.dll ONLY in command line mode

From: Date: Fri, 03 Oct 2003 16:26:31 +0000
Subject: Re: #17002 [Com]: Unable to load php_oci8.dll ONLY in command line mode
References: 1 2  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969356501@lists.php.net to get a copy of this message
Hi Constantin,
Platform: PHP 4.3.4RC1, Apache2, WindowsXP Pro... Can't seem to be able to load the extension. Tried EVERYTHING...Help me please..
Please ask for support at php-general@lists.php.net, not in a bug report.. didou
Thanx. Previous Comments: ------------------------------------------------------------------------ [2003-04-01 14:11:34] nelo at icubestudio dot com According my experience it is not a PATH problem at all. I am trying to connect to Oracle 9i with PHP 4.2/4.3, Apache 1.3/2.0 without success for many hours :( I copied OCI.DLL many times almost everywhere, also PATH is set correctly. Might be problem of PHP, Oracle, or both simply cannot communicate. If someone ever succeded running Oracle 9i R2 with PHP please mail me. Nelo ------------------------------------------------------------------------ [2003-01-17 23:04:42] philip@php.net This has now been documented, see: http://cvs.php.net/cvs.php/phpdoc/en/chapters/install.windows.xml Thanks for the report :) ------------------------------------------------------------------------ [2002-05-05 12:09:28] sander@php.net Hm... it seems to me a good idea to note somewhere in the manual that PHP (or Windows) searches for DLL's in %PATH% and %SYSTEM%. Reopening as a documentation problem. ------------------------------------------------------------------------ [2002-05-05 12:04:48] dong_peng at sd163 dot net Of course, it is NOT a bug of php. ------------------------------------------------------------------------ [2002-05-05 12:01:11] dong_peng at sd163 dot net After failed many times, I happened to find the cause. I think it maybe helpful for many people who reported or asked the same question that I have seen on www.php.net .
    It is the PATH has not been correctly set.
    When loading php_oci8.dll, this DLL file search for the other DLL
file "oci.dll" in current directory, PATH environment and %SYSTEM%(on Windows). If oci.dll can not be found, the OS will tell you "Unable to load dynamic library : php_oci8.dll". If you installed Oracle RDBMS on your system, then the file "oci.dll" is in Oralce Home directory. So you must include "Oracle Home Directory " in PATH environment, on my computer it is "D:\Oracle\ora81\Bin". Perhaps, the same problem on different platform can be solved in same way, try it.
    I am lucky to find the cause in almost ten days, I hope people will
not be worried about this problem any longer.
                                 Dong Peng
                                 Lanzhou Railway Universiy
                                 China
                                 2002-5-6 00:06
------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at
    http://bugs.php.net/17002


« previous php.doc (#969356501) next »