Practical Web 2.0 Applications with PHP

Book description

Want to assert yourself as a cutting-edge PHP web developer? Take a practical approach, learning by example from author Quentin Zervaas, and discover how to bring together the many technologies needed to create a successful, modern web application.

In Practical Web 2.0 Applications with PHP, PHP, MySQL, CSS, XHTML, and JavaScript/Ajax development techniques are brought together to show you how to create the hottest PHP web applications, from planning and design up to final implementation, without going over unnecessary basics that will hold you back. This book includes must-have application features such as search functionality, maps, blogs, dynamic image galleries, and personalized user areas. The Zend Framework is used extensively to build the application, allowing you to focus on developing the application rather than on reinventing the wheel.

Topics covered include application planning and design, setting up the application framework, using CSS for easier styling, adding dynamic effects the easy way using JavaScript libraries such as Prototype and script.aculo.us, and implementing several must-have web application features such as user login, blogs, dynamic image galleries, search functionality, mapping with Google Maps, and much more. Zervaas covers everything in a practical, tutorial style so you can start working on your own projects as quickly as possible.

  • Create cutting-edge PHP/MySQL web applications

  • Implement must-have functionality such as blogs, maps, search functionality, and dynamic image galleries

  • Master styling with CSS and dynamic effects using Ajax/JavaScript libraries

Table of contents

  1. Title Page
  2. Contents at a Glance
  3. Contents
  4. About the Author
  5. About the Technical Reviewer
  6. Introduction
    1. Who This Book Is For
    2. How This Book Is Structured
    3. Prerequisites
    4. Downloading the Code
    5. Contacting the Author
  7. CHAPTER 1: Application Planning and Design
    1. What Is Web 2.0?
    2. Database Connectivity
    3. Web Site Templates
    4. Web Site Features
    5. Other Aspects of Development
    6. Version Control and Unit Testing
    7. Summary
  8. CHAPTER 2: Setting Up the Application Framework
    1. Web Server Setup
    2. Application Filesystem Structure
    3. Installing the Zend Framework
    4. Configuring the Web Server
    5. Setting Up the Database
    6. Using the Model-View-Controller Pattern
    7. Defining Application Settings
    8. Connecting to the Database
    9. The Smarty Template Engine
    10. Adding Logging Capabilities
    11. Summary
  9. CHAPTER 3: User Authentication, Authorization, and Management
    1. Creating the User Database Table
    2. Introduction to Zend_Auth
    3. Introduction to Zend_Acl
    4. Combining Zend_Auth, Zend_Acl, and Zend_ Controller_Front
    5. Managing User Records with DatabaseObject
    6. Managing User Profiles
    7. Summary
  10. CHAPTER 4: User Registration, Login, and Logout
    1. Adding User Registration to the Application
    2. Implementing Account Login and Logout
    3. Dealing with Forgotten Passwords
    4. Implementing Account Management
    5. Summary
  11. CHAPTER 5: Introduction to Prototype and Scriptaculous
    1. Downloading and Installing Prototype
    2. Selecting Objects in the Document Object Model
    3. Prototype's Hash Object
    4. Other Element Extensions
    5. Ajax Operations in Prototype
    6. Event Handling in Prototype
    7. Creating JavaScript Classes in Prototype
    8. From Prototype to Scriptaculous
    9. Downloading and Installing Scriptaculous
    10. Combining Prototype, Scriptaculous, Ajax, and PHP in a Useful Example
    11. Summary
  12. CHAPTER 6: Styling the Web Application
    1. Adding Page Titles and Breadcrumbs
    2. Integrating the Design into the Application
    3. Constructing the CSS
    4. Styling the Application Web Forms
    5. Loading Prototype and Scriptaculous
    6. Implementing Client-Side Form Validation
    7. Summary
  13. CHAPTER 7: Building the Blogging System
    1. Creating the Database Tables
    2. Setting Up DatabaseObject and Profile Classes
    3. Creating a Controller for Managing Blog Posts
    4. Creating and Editing Blog Posts
    5. Previewing Blog Posts
    6. Updating the Status of a Blog Post
    7. Summary
  14. CHAPTER 8: Extending the Blog Manager
    1. Listing Blog Posts on the Blog Manager Index
    2. Ajaxing the Blog Monthly Summary
    3. Integrating a WYSIWYG Editor
    4. Summary
  15. CHAPTER 9: Personalized User Areas
    1. Controlling User Settings
    2. The UserController Class
    3. Displaying the User's Blog
    4. Populating the Application Home Page
    5. Summary
  16. CHAPTER 10: Implementing Web 2.0 Features
    1. Tags
    2. Web Feeds
    3. Microformats
    4. Allowing Users to Create a Public Profile
    5. Summary
  17. CHAPTER 11: A Dynamic Image Gallery
    1. Storing Uploaded Files
    2. Uploading Files
    3. Sending Images
    4. Resizing Images
    5. Managing Blog Post Images
    6. Displaying Images on User Blogs
    7. Summary
  18. CHAPTER 12: Implementing Site Search
    1. Introduction to Zend_Search_Lucene
    2. Indexing Application Content
    3. Creating the Search Tool
    4. Adding Autocompletion to the Search Tool
    5. Summary
  19. CHAPTER 13: Integrating Google Maps
    1. Google Maps Features
    2. Planning Integration
    3. Adding Location Storage Capabilities
    4. Creating Our First Map
    5. Managing Locations on the Map
    6. Displaying the Map on Users' Public Blogs
    7. Summary
  20. CHAPTER 14: Deployment and Maintenance
    1. Application Logging
    2. Site Error Handling
    3. Web Site Administration
    4. Application Deployment
    5. Backup and Restore
    6. Summary
  21. Index

Product information

  • Title: Practical Web 2.0 Applications with PHP
  • Author(s): Quentin Zervaas
  • Release date: December 2007
  • Publisher(s): Apress
  • ISBN: 9781590599068