• Uncategorized 06.12.2007

    Oracle 10g Instant Client (free download available) is
    the easiest way for PHP to connect to a remote Oracle database, requiring
    installation of only three libraries.

    The Instant Client libraries used by PHP
    access Oracle’s current API, called OCI8. (This C interface takes its
    name from being first introduced in Oracle8.)
    PHP Oracle 8
    Functions
    can call Oracle 8.1.7, 9.x, or 10.x directly, or optional
    abstraction classes like PEAR MDB2 and ADOdb can be used for
    convenience.

    Download the instantclient-basic and instantclient-devel packages from the download page:

    1. http://download.oracle.com/otn/linux/instantclient/11106/oracle-instantclient-basiclite-11.1.0.1-1.i386.rpm

    2.  http://download.oracle.com/otn/linux/instantclient/11106/oracle-instantclient-devel-11.1.0.1-1.i386.rpm

    Install the RPMs and use the following to compile and install PHP

    ./configure –with-apxs2=/usr/local/apache/bin/apxs –with-mysql –with-zlib –with-gd –prefix=/usr/local/php5 –with-gd –with-curl –enable-sockets –with-mysqli –with-jpeg –with-zlib –with-png –with-gd –with-curl=/usr/local/curl7  –with-oci8=instantclient,/usr/lib/oracle/11.1.0.1/client/lib/

    make
    make install

    Posted by Ram @ 2:16 pm

  • Leave a Comment

    Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.