[PHP-DOC] #17002 [Opn->Csd]: Unable to load php_oci8.dll ONLY in command line mode From: philip <email protected>
Date: 01/18/03

 ID: 17002
 Updated by: philip <email protected>
 Reported By: dong_peng <email protected>
-Status: Open
+Status: Closed
 Bug Type: Documentation problem
 Operating System: Win98
 PHP Version: 4.2.0
 New Comment:

This has now been documented, see:

http://cvs.php.net/cvs.php/phpdoc/en/chapters/install.windows.xml

Thanks for the report :)

Previous Comments:
------------------------------------------------------------------------

[2002-05-05 12:09:28] sander <email protected>

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 <email protected>

Of course, it is NOT a bug of php.

------------------------------------------------------------------------

[2002-05-05 12:01:11] dong_peng <email protected>

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

------------------------------------------------------------------------

[2002-05-04 05:15:29] mfischer <email protected>

The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php

------------------------------------------------------------------------

[2002-05-04 05:00:24] dong_peng <email protected>

Unable to load php_oci8.dll ONLY in command line mode

    I have just installed php 4.2.0 for win32 on my computer. I found
the same bug as php (4.1.2).
    There is nothing wrong when I use php in ISAPI mode, and I can
connect to Oracle 8i(8.1.7 Personal Edition) successfully and
manipulate data too. but when I use php in command line mode to process
some task which can only run once, the system show a message box with
the text below :
    'Unable to load dynamic library
"c:\php420\extensions\php_oci8.dll". '
    The extension file "php_oci8.dll" does exist in the above
directory, and can work correctly in ISAPI mode. So I considered that
there is a bug in "php.exe" on loading dynamic library. Is it?
    Please help me.
                           Dong Peng 2002-5-4

------------------------------------------------------------------------

-- 
Edit this bug report at http://bugs.php.net/?id=17002&edit=1

-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php