PHP
Developer Center

High performance PHP applications with Oracle Database

The PHP OCI8 2.0 extension for Oracle Database is now "production" status. The source code is included in the latest PHP versions and is also available on PECL to update your OCI8 extension in PHP 5.2 and later versions. The extension compiles with Oracle 10.2 or later client libraries. Oracle's standard cross-version database connectivity applies, allowing PHP to connection to multiple versions of Oracle Database.

PHP OCI8 is part of the PHP open source project. It is maintained by Oracle, and is under active development.

Features

  • SQL and PL/SQL Execution
  • Fetching of large result sets
  • REF CURSORs
  • Implicit Result Sets
  • Large Objects: CLOBs and BLOBs
  • Binding and array binding
  • Transaction Management
  • Inbuilt Connection Pooling
  • Database Resident Connection Pooling (DRCP)
  • External Authentication
  • Row Prefetching
  • Statement Caching
  • Client Result Caching
  • End-to-end tracing
  • Oracle Database High Availability Features

PHP OCI8 Resources

Related Technologies

Other Developer Resources

Articles on using PHP with Oracle

Installing PHP and Instant Client on Linux and Windows [August 2014]
by Christopher Jones
These detailed, step-by-step instructions by Oracle Senior Product Manager Chris Jones walk you through the process of installing PHP and instant client on Oracle Linux and Windows platforms.

Installing PHP on Oracle HTTP Server 12c [April 2014]
by Christopher Jones
These detailed, step-by-step instructions by Oracle Senior Product Manager Chris Jones walk you through the process of installing PHP on Oracle HTTP Server 12c.

Installing PHP and the Oracle TimesTen In-Memory Database on Linux [April 2012]
by Christopher Jones
A step-by-step guide

New Features in PHP 5.4 [April 2012]
by Rasmus Lerdorf
The LAMP stack has new competition, but features in this release have PHP pushing the envelope once again. 

Installing PHP and the Oracle Instant Client for Linux and Windows [April 2012]
by Christopher Jones
Updated for PHP 5.4 and Oracle Database 11g Release 2

Installing Oracle Database, PHP, and Apache on Microsoft Windows XP [April 2012]
by Rob Clevenger & Christopher Jones
Updated for PHP 5.4 and Oracle Database 11g Release 2

PHP Web Auditing, Authorization and Monitoring with Oracle Database [Sept. 2010]
by Chris Jones
Learn to use Oracle Database's "client identifier" feature in your PHP applications.

Build an Enterprise-Grade PHP Stack with Zend Server and Oracle Database 11g [June 2010]
by Vikram Vaswani
The quick way to create a Oracle/PHP/Apache/Linux (OPAL) development and deployment environment


High Performance and Availability with Oracle RAC and PHP [June 2009]
by John Lim
Review real-world experiences in deploying a business-critical PHP app over Oracle Real Application Clusters.

Installing PHP and the Oracle Instant Client for Linux and Windows [March 2009]
by Chris Jones
This classic install guide has been updated for PHP 5.2.

Installing PHP 5.2 for Oracle on Mac OS X 10.5 (Leopard) [22-Jan-2009]
by Tony Bibbs
How to get your Mac set-up to build Oracle-based PHP applications.

Oracle Symfony in PHP Minor [10-July-2008]
by Mladen Gogala
Oracle Database 11 g and the Symfony Web PHP Framework can make beautiful music together, as illustrated by this simple sample app.

Database-Based Authentication for PHP Apps, Part 2 [May 2007]
by Michael McLaughlin
Learn how to secure PHP-based Web applications via database-based authentication; in this installment, fine grained access is examined.

Database-Based Authentication for PHP Apps, Part 1
[May 2007]
by Michael McLaughlin
Learn how to secure PHP-based Web applications via database-based authentication.