Toggle navigation
See also
Home
Server Administration
Upgrading to php 5
Preface
Upgrading to PHP 5
Preface
Who This Book Is For
Who This Book Is Not For
What's in This Book
Other Resources
Conventions Used in This Book
Using Code Examples
We'd Like to Hear from You
Acknowledgements
Chapter 1. Introduction
1.1 Why PHP 5?
1.2 What's New in PHP 5?
1.3 Installing and Configuring PHP 5
Chapter 2. Object-Oriented Programming
2.1 What Is Object-Oriented Programming?
2.2 Memory Management
2.3 Basic Classes
2.4 Class Intermediates
2.5 Inheritance
2.6 Magical Methods
Chapter 3. MySQL
3.1 Installing and Configuring
3.2 Procedural Interface
3.3 Before and After: Connecting to the Database Server
3.4 Object-Oriented Interface
3.5 Before and After: Querying and Retrieving Data with Prepared Statements
3.6 Before and After: Subselects
3.7 Transactions
3.8 Before and After: Making Multiple Queries
3.9 Securing Connections with SSL
3.10 Porting Code and Migrating Databases
Chapter 4. SQLite
4.1 SQLite Basics
4.2 Alternate SQLite Result Types
4.3 Object-Oriented Interface
4.4 Indexes, Error Handling, and In-Memory Tables
4.5 Transactions
4.6 User-Defined Functions
Chapter 5. XML
5.1 XML Extensions in PHP 5
5.2 Installing XML and XSLT Support
5.3 DOM
5.4 SimpleXML
5.5 Converting Between SimpleXML and DOM Objects
5.6 Before and After: Reading XML into a Tree
5.7 Before and After: Searching XML with XPath
5.8 Reading XML as Events with SAX
5.9 Before and After: Creating New XML Documents
5.10 Before and After: Transforming XML with XSLT
5.11 Validating Against a Schema
Chapter 6. Iterators and SPL
6.1 Before and After: Using Iterators
6.2 Implementing the Iterator Interface
6.3 MySQL Query Iterator
6.4 Chaining Iterators
6.5 SimpleXML Iterator
6.6 Before and After: Recursive Directory Iteration
6.7 Implementing the RecursiveIterator Interface
6.8 Array and Object Property Iteration
6.9 Redefining Class Iteration
6.10 Iterator and SPL Classes and Interfaces
Chapter 7. Error Handling and Debugging
7.1 Before and After: Handling Errors
7.2 The Benefits of Exceptions
7.3 System Exceptions
7.4 The Exception Class
7.5 User Exceptions
7.6 Setting a Custom Exception Handler
7.7 Processing Errors with a Custom Handler
7.8 Debugging Functions
Chapter 8. Streams, Wrappers, and Filters
8.1 Using the Streams API
8.2 Wrapper Overview
8.3 Wrapper Details
8.4 Creating Wrappers
8.5 Filtering Streams
8.6 Creating Filters
Chapter 9. Other Extensions
9.1 SOAP
9.2 Tidy
9.3 Reflection
Chapter 10. PHP 5 in Action
10.1 Defining Your Database Schema
10.2 The Person Class
10.3 The addressBook Class
10.4 The Template Class
10.5 Assembling the Application
10.6 Wrap-Up and Future Directions
Appendix A. Introduction to XML
A.1 Comparing HTML and XML
A.2 Well-Formed XML
A.3 Schemas
A.4 Transformations
A.5 XML Namespaces
A.6 XPath
Appendix B. Additional New Features and Minor Changes
B.1 Passing Optional Parameters by Reference
B.2 New E_STRICT Error Setting
B.3 Treating Strings as Arrays Causes Errors
B.4 CLI Now Allows Individual Line Processing
B.5 CLI Always Provides argv and argc
B.6 Oracle (oci8) Extension Functions Renamed
B.7 New Configuration Directives
B.8 Updated COM Extension
B.9 Apache 2 Correctly Sets PATH_TRANSLATED
B.10 strrpos( ) Uses the Entire Needle
B.11 Windows 95 Support Dropped
B.12 old_function Eliminated
Appendix C. Installing PHP 5 Alongside PHP 4
C.1 General PHP 5 Configuration
C.2 Module and CGI
C.3 Windows
Colophon
Remember the name: eTutorials.org
Copyright eTutorials.org 2008-2024. All rights reserved.