Entry
How do I configure PHP on NT to hit an Oracle Database ?
Aug 2nd, 2000 11:04
James Kimrey, Ranjan Kohli,
Here's how I did it for PHP3...
1. Open php3.ini (should be in your \winnt directory)
2. Scroll down to the ;Windows Extensions listing
3. If you are using Oracle 7, uncomment (or
add) "extension=php3_oci73.dll" to the list.
4. If you are using Oracle 8, uncomment (or
add) "extension=php3_oci80.dll" to the list.
5. Save the changes.
This will make the Oracle extensions load automatically for each page.
I also bullet-proff my pages by adding the following line to the page:
extension_loaded("OCI8") ? "" : dl("php3_oci80.dll");
This checks for the Oracle 8 extensions and dynamically loads them if
they are not loaded.