User's Manual
Beta Draft iii
Contents
Preface................................................................................................................................................................ v
Audience....................................................................................................................................................... v
Documentation Accessibility..................................................................................................................... v
Related Documents ..................................................................................................................................... vi
Conventions ................................................................................................................................................. vi
1 Introducing PHP with Oracle Database XE
Zend Core for Oracle ............................................................................................................................... 1-1
Purpose ....................................................................................................................................................... 1-1
Overview of the Sample Application................................................................................................... 1-1
Resources ................................................................................................................................................... 1-3
2 Getting Started
What You Need ........................................................................................................................................ 2-1
Obtaining Oracle Database Express Edition (Oracle Database XE)............................................ 2-1
Obtaining Apache ............................................................................................................................. 2-1
Obtaining Zend Core for Oracle ...................................................................................................... 2-1
Testing the Oracle Database XE Installation....................................................................................... 2-2
Testing the Apache Installation............................................................................................................. 2-3
Setting Up Zend Core for Oracle........................................................................................................... 2-4
Installing Zend Core for Oracle on Linux ...................................................................................... 2-5
Configuring Zend Core for Oracle .................................................................................................. 2-6
Testing the Zend Core for Oracle Installation .................................................................................... 2-7
3 Getting Connected
Building the Departments Page ............................................................................................................ 3-1
Connecting to the Database.................................................................................................................... 3-4
Other Ways to Connect ..................................................................................................................... 3-5
Disconnecting from the Database......................................................................................................... 3-6
4 Querying Data
Centralizing the Database Application Logic..................................................................................... 4-1
Writing Queries with Bind Variables................................................................................................... 4-4
Navigating Through Database Records ............................................................................................... 4-6