views:

236

answers:

3

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.

A: 

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?

VolkerK
Wouldn't the OCI8 extension require the installation of the Oracle driver?
Jordy Boom
+2  A: 

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.

Gary
I was hoping to find a drop-in solution that didn't require system changes. Mainly to simplify deployment.
Jordy Boom
A: 

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.)