Question

Is there a thin driver for Oracle available to be used with PHP (for example as an extension)?

I cannot install the OCI driver/client, but need to be able to access an Oracle database.

Was it helpful?

Solution

What is the problem with installing the OCI driver ? The InstantClient version simply requires an unzip and setting a couple of environment variables.

The other option is exposing the database functionality through web services. 11g includes an inbuilt HTTP server.

OTHER TIPS

Oracle released a jdbc driver written only in java, but (afaik) without the source code, so I doubt they will release a php (source code) driver. And never heard of an attempt by someone else.

But another question: "(for example as an extension)" You would be able to install an extension but not the oci8 extension?

There is no "thin" Oracle driver in PHP. You always need an external client library such as Oracle Instant Client - which is really easy to install. Check http://www.oracle.com/technology/tech/php/pdf/underground-php-oracle-manual.pdf

(Also, Oracle has RPMs of PHP and Instant Client that can be used on RH Linux.)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top