HAPPY BOOKSGIVING
Use code BOOKSGIVING during checkout to save 40%-55% on books and eBooks. Shop now.
Publishers of technology books, eBooks, and videos for creative people
Register your product to gain access to bonus material or receive a coupon.
PHP is currently one of the most popular server-side, HTML-embedded scripting language on the Web. It's specifically designed for Web site creation and is frequently being used to replace the functionality created by Perl to write CGI scripts. PHP's popularity and easier-to-learn appeal has spawned a new breed of programmer, those who are only familiar with and only use PHP.
Sharpen your PHP skills with the fully revised and updated, PHP 5 Advanced for the World Wide Web: Visual QuickPro Guide! Filled with fifteen chapters of step-by-step content and written by best-selling author and PHP programmer, Larry Ullman, this guide teaches specific topics in direct, focused segments, shows how PHP is used in real-world applications, features popular and most-asked-about scripts, and details those technologies that will be more important in the future. You'll learn about object-oriented programming, PHP interactions with a server, XML, RSS, Networking with PHP, image and PDF generation, and more.
Table of Contents
Introduction
Chapter 1: Advanced PHP Programming
Code Structure and Documentation
Function Recursion and Static Variables
References and Functions
PERL-Compatible Regular Expressions
Chapter 2: Basic Object-Oriented Programming
Defining a Class
Creating an Object
Creating Constructors
Object Inheritance
Using Class Functions Without Instances
Serializing Objects
Destroying Objects
Chapter 3: Developing Web Applications
Catching Exceptions
Using PEAR's HTML_QuickFOrm
Modularizing a Web Site
Error Logging and Reporting
Browser Detection
Chapter 4: Database Concepts
Database Design and Normalization
Storing Sessions in a Database
Storing BLOBs in a Database
Using Prepared Statements
Database Encryption
Working with Bound Variables
Chapter 5: Security
Validating Forms
Validating Forms with JavaScript
Encryption with Mcrypt
HTTP Authentication
Web Server Security
Shared Server Security
Encorporating Captcha with PEAR
Using PEAR Auth
Chapter 6: Advanced OOP
Inheritance
Access Control
Polymorphism
Encapsulation
Overloading
Chapter 7: E-Commerce
Creating the Database
Administration
Showing the Products Online
Writing a Shopping Cart
Handling Commerical Transactions
Chapter 8: Image Generation
Creating a Simple Image
Using TrueType Fonts
Creating a Database-Driven Graph
Saving and Building on Existing Images
Chapter 9: Creating PDFs
Creating a Simple PDF
Adding Text to PDFs
Drawing Shapes
Using Images
Creating Multiple-Page PDFs
Chapter 10: XML and PHP
What is XML?
XML Syntax
Document Type Definitions
Parsing XML With PHP
XML Error Handling
Chapter 11: Networking with PHP
Accessing Other Web Sites with PHP
Using fsockopen()
Creating RSS Feeds
AJAX
Using Curl
Understanding Streams
Chapter 12: PHP and the Server
Establishing a Cron
Task Manager on Windows
Compressing Files with PHP
Using COM with PHP
PHP on Windows
Running Two Versions of PHP with Apache
Chapter 13: Using PHP's Command Line Interface
Basic Syntax
Working with Command Line Arguments
Redirecting Output
Chapter 14: Improving PHP Performance
Installation Options
Configuration Options
Using an Op Cache
Coding Suggestions
Database Suggestions
Using Benchmarks
Using Profiling
Performing Unit Tests
Appendix A: Installation
Installing PHP with Apache on Linux
Installing PHP on Windows with Xitami
Installing PHP on Mac OS X with Apache
Running Two Versions of PHP with Apache
Appendix B: Databases
Database Applications
SQL
MySQL Resources
Other Resources
Appendix C: General Resources
PHP-Specific Sites
Additional Libraries
Security
Other Resources
Page 13: Lines 79 & 80 should be switched. This also applies to lines 69 & 70 of Script 1.6 on page 40 and to the code in Step 12 on page 16.
Page 15: On the second line of code under Step 9, the word "its" should not be there. The corresponding script is correct.
Page 96: In the very last sentence, it should say "One source of..." ("One" instead of "Once").
Page 105: The query ending on line 47 of Script 3.3 should have the final closing parentheses after 69.09. This also applies to the code in Step 6 on page 107.
Page 201: Line 60 of Script 5.5 should be "if (mysqli_num_rows($r) >= 1) {". This change also applies to the last line of code under Step 7 on page 203.
Page 266: In the last sentence, the reference should be to Figure 12.2, not 12-02.
Page 283: Line 78 of Script 7.4 should say "...modify $parent->protected...". This change also applies to the fifth line of code under Step 8 on page 286 and to Figure 7.14 on that same page.
Page 332: On line 149 of Script 8.4, the closing bold tag is missing its slash. This also applies to the code in Step 12 on page 339.
Page 340: On line 7 of the first paragraph, the word "uses" should be "use".