In this concise, hands-on tutorial, PHP expert Christopher Cosentino delivers dozens of powerful new techniques for building serious Web applications. Through professional-quality examples drawn from his six years as a PHP developer, Cosentino walks you through building friendlier, more usable sites; improving user authentication; generating dynamic graphics; parsing XML documents; building database-independent Web applications; and much more!
This book assumes that you have some experience with PHP. This book is not meant to be an introductory text on PHP programming but is instead a book on some of the more advanced uses for PHP that you won't find in many of the introductory books or tutorials on the Web.
Having said that, I am still providing here a brief introduction to PHP for those who may need a quick refresher or are already familiar with a similar language, such as PERL
Chapter 1. PHP Review
Overview
PHP Syntax
Variables
Operators
Arrays
If/Then Statements
Switch Statements
For Loops
Foreach Loops
While Loops
Do While Loops
User-Defined Functions
Object Oriented Programming with PHP
phpinfo()- Additional Resources
Chapter 2. Session Management
In This Chapter
Introduction to Session Management in PHP4
Initial php.ini Settings for Session Management
Starting a Session
The Contents of Session Files
Tracking Variables across Pages during a Session
Unregistering Session Variables
Destroying Sessions
A Simple Session-Based Shopping Cart
Chapter 3. Multiple Database Interaction
In This Chapter
Advanced Database Interaction in PHP4
Database-Specific Functions in PHP
DBX—PHP Support for Multiple Databases
Creating Your Own Support for Multiple Databases- Using PEAR::DB
Chapter 4. Better Form Processing
In This Chapter
Introduction to Better Forms
Post and Get
Making Forms Friendly
Souping Up the Script
Form-Field Checking
Using $HTTP_GET_VARS and $HTTP_POST_VARS
Putting It All Together
Variable Variables
Chapter 5. Using What You Have Learned—A Simple Shopping Cart
In This Chapter
Introduction
Features of the Shopping Cart
Setting It Up
The Code
Chapter 6. Working with Files
In This Chapter
Overview
Opening and Closing Files
Putting It to Use
Data Mining
Parsing Large Text Files
Chapter 7. PHP Authentication Schemes
In This Chapter
Overview
Generating Passwords
Authenticating User Against Text Files
Authenticating Users by IP Address
Authenticating Users Using HTTP Authentication
Authenticating Users by Database Query
In This Chapter
Overview
Error Reporting
Introduction- Setting It Up
- The Code
Chapter 10. PHP and XML
In This Chapter
Overview
Creating an XML Parser
Parsing and Transforming XML Documents- Dumping Database Contents into an XML File
Chapter 11. Generating Dynamic Graphics with PHP
In This Chapter
Overview
The GD Library
Enabling GD Support
Generating Graphics with GD
Chapter 12. PHPGTK
In This Chapter
Introduction to PHPGTK
Installing PHPGTK
Creating Basic GTK Objects
Putting It All Together
A Simple PHPGTK Application
0 comments:
Post a Comment