You are previewing Web Application Development with PHP 4.0.
O'Reilly logo
Web Application Development with PHP 4.0

Book Description

As Web sites and intranets become larger and more complex, static HTML files hit their limits. In the first part of Web Application Development with PHP the authors explain PHP's advanced syntax like classes, recursive functions and variables. They present software development methodologies and coding conventions which are a must-know for industry quality products as well as to help making develop faster and more productive. This part covers also many standard algorithms for tree-structures, string sorting and searching. Part Two focuses on the concept of Web Applications (as opposed to single scripts) and gives much insight into user and session management, e-commerce systems, XML applications and WDDX.

Table of Contents

  1. Copyright
  2. Preface
  3. Advanced PHP
    1. Development Concepts
      1. PHP for Me?
      2. The Importance of Planning
      3. Coding Conventions
      4. Using Files to Group Functions
      5. Writing Documentation
      6. An API Design Example
      7. Summary
    2. Advanced Syntax
      1. PHP Syntax
      2. Defining Constants
      3. Array Functions
      4. PHP and OOP
      5. Linked Lists
      6. Associative Arrays
      7. Polymorphism and Self-Modifying Code
      8. Summary
    3. Application Design: A Real-Life Example
      1. Project Overview
      2. Comparing Technologies
      3. IRC Network Basics
      4. Fitting the Application into the Network
      5. Interfacing the Network
      6. Administration and Security
      7. Implementation
      8. Summary
  4. Web Applications
    1. Web Application Concepts
      1. HTTP and Sessions
      2. Security Considerations
      3. Why Usability Matters
      4. Summary
    2. Basic Web Application Strategies
      1. The PHP Normal Form
      2. Project Layout
      3. CVS: Concurrent Versions System
      4. Three-Tier Applications
      5. Summary
    3. Database Access with PHP
      1. PHPLib: The PHP Base Library
      2. Database Abstraction
      3. Authentication
      4. Summary
    4. Cutting-Edge Applications
      1. Knowledge Repositories
      2. PHP and XML
      3. Interchanging Data with WDDX
      4. Summary
    5. Case Studies
      1. BizChek.com
      2. SixCMS
      3. MarketPlayer.com
      4. Summary
  5. Beyond PHP
    1. Extending PHP 4.0: Hacking the Core of PHP
      1. Overview
      2. What Is Zend? and What Is PHP?
      3. Extension Possibilities
      4. Source Layout
      5. PHP's Automatic Build System
      6. Creating Extensions
      7. Compiling Modules
      8. Using Extensions
      9. Troubleshooting
      10. Source Discussion
      11. Accepting Arguments
      12. Creating Variables
      13. Objects
      14. Resources
      15. Macros for Automatic Global Variable Creation
      16. Duplicating Variable Contents: The Copy Constructor
      17. Returning Values
      18. Printing Information
      19. Startup and Shutdown Functions
      20. Calling User Functions
      21. Where to Go from Here
      22. Reference: Some Configuration Macros
  6. Notes
  7. Index