Multi-Tier Application Programming with PHP

Book description

While many architects use PHP for projects, they are often not aware of the power of PHP in creating enterprise-level applications. This book covers the latest version of PHP – version 5 -- and focuses on its capabilities within a multi-tier application framework. It contains numerous coding samples and commentaries on them. A chapter discusses object orientation in PHP as it applies to the multi-tier architecture and other chapters discuss HTTP and SOAP, the two communication protocols most useful in tying together multiple layers. There is also coverage of database design and query construction as well as information about tricks you can use in generating user interfaces.
  • Covers PHP as it relates to developing software in a multi-tier environment—a crucial aspect of developing robust software with low cost and ease of use as design goals.
  • Makes extensive use of Simple Object Access Protocol (SOAP) and Web Services as implemented in PHP and NuSOAP.
  • Shows precisely how to make use of the InnoDB table type newly available in MySQL. InnoDB supports true referential integrity and row-level locking.
  • An application example (a multi-currency bookkeeping application) runs throughout the book, showing various PHP capabilities as well as the database interaction.

Table of contents

  1. Cover image
  2. Title page
  3. Table of Contents
  4. The Morgan Kaufmann Practical Guides Series
  5. Copyright
  6. Dedication
  7. Preface
  8. Chapter 1: Introduction
    1. 1.1 Defining Multi-Tier Software Design
    2. 1.2 Advantages of a Multi-Tier System
    3. 1.3 Disadvantages of a Multi-Tier System
    4. 1.4 Questions and Exercises
  9. Chapter 2: Principles of Object Orientation in PHP
    1. 2.1 Creating Classes
    2. 2.2 Using a Class
    3. 2.3 More Advanced Aspects of PHP Object Orientation
    4. 2.4 Questions and Exercises
  10. Chapter 3: HTTP in PHP
    1. 3.1 Understanding HTTP
    2. 3.2 Working with HTTP in PHP
    3. 3.3 Cookies
    4. 3.4 Sessions
    5. 3.5 Questions and Exercises
  11. Chapter 4: Simple Object Access Protocol Under PHP
    1. 4.1 Understanding SOAP
    2. 4.2 Implementing SOAP in PHP
    3. 4.3 Questions and Exercises
  12. Chapter 5: Designing and Implementing a Multi-Tier Application in PHP: A Succinct Example
    1. 5.1 Examining the Problem
    2. 5.2 The Database Layer
    3. 5.3 The Accessor Layer
    4. 5.4 The Business Logic Layer
    5. 5.5 The Presentation Layer
    6. 5.6 Questions and Exercises
  13. Chapter 6: The Persistence Layer
    1. 6.1 Choosing a Persistent Storage Mechanism
    2. 6.2 Designing the Database
    3. 6.3 Understanding Table Relationships and Normalization
    4. 6.4 Deciding on a Table Schema
    5. 6.5 Translating the Schema into SQL
    6. 6.6 Populating the Tables
    7. 6.7 Questions and Exercises
  14. Chapter 7: The Accessor Layer
    1. 7.1 Extracting Data from the Database
    2. 7.2 Adding Data to the Database
    3. 7.3 Modifying Data in the Database
    4. 7.4 Deleting Data from the Database
    5. 7.5 Questions and Exercises
  15. Chapter 8: Business Logic
    1. 8.1 Inserting, Updating, and Deleting
    2. 8.2 Reporting
    3. 8.3 Questions and Exercises
  16. Chapter 9: The Presentation Layer
    1. 9.1 Frameworks and Resources
    2. 9.2 Viewing and Adding—Everything but Transactions
    3. 9.3 Editing—Everything but Transactions
    4. 9.4 Transactions
    5. 9.5 Questions and Exercises
  17. Chapter 10: The Elsewhere Layer
    1. 10.1 Means of Grabbing Online Information
    2. 10.2 Choosing a Web Service
    3. 10.3 Making Use of the Web Service
    4. 10.4 Questions and Exercises
  18. Afterword
  19. Index
  20. The Morgan Kaufmann Practical Guides

Product information

  • Title: Multi-Tier Application Programming with PHP
  • Author(s): David Wall
  • Release date: June 2004
  • Publisher(s): Morgan Kaufmann
  • ISBN: 9780080537153