dbTalk Databases Forums  

PHP and Oracle Client

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss PHP and Oracle Client in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Álvaro G. Vicario
 
Posts: n/a

Default PHP and Oracle Client - 06-10-2008 , 10:53 AM






Scenario:

- Windows Server 2003
- Apache 2.2.8 (latest)
- PHP 2.2.6 (latest)
- Oracle 10g (remote machine)
- Oracle Client 10g Express Edition

I spent a couple of hours trying to figure out why PHP would not connect
to Oracle using OCI8 functions while ODBC functions and TOAD worked
fine. I eventually launched Systernal's "Filemon" utility and found out
that Apache (PHP runs as Apache module) was looking for a file called
"ORAOCIEI10.DLL", which was nowhere on my hard disc. Desperate enough, I
copied "oraocixe10.dll" as "oraociei10.dll" and, to my surprise, it all
started working.

I fear that it'll break randomly the least expected day so I'd like to
understand how/why this happens.

If "php_oci8.dll" is binded to an specific oracle client library, why is
it version 10 and not something newer? If it's not, what makes it seek
for this or that client DLL?


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com
--

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.