My Account
View Cart
Home
Community
Books & Videos
Safari Books Online
Conferences
Training
School of Technology
About
Complete List
Bestsellers
New Releases
Rough Cuts
Upcoming Titles
Ebooks
By Publisher
By Series
Out of Print
Order Info
Search
Search Tips
Tell a friend
PHP Hacks
Tips & Tools For Creating Dynamic Websites
By
Jack Herrington
December 2005
Pages: 468
|
Table of Contents
|
Index
|
Sample Hacks
|
Colophon
Table of Contents
Chapter 1
Installation and Basics
Hacks 1–2: Introduction
Install PHP
Install PEAR Modules
Chapter 2
Web Design
Hacks 3–10: Introduction
Create a Skinnable Interface
Build a Breadcrumb Trail
Create HTML Boxes
Add Tabs to Your Web Interface
Give Your Customers Formatting Control with XSL
Build Lightweight HTML Graphs
Properly Size Image Tags
Send HTML Email
Chapter 3
DHTML
Hacks 11–26: Introduction
Put an Interactive Spreadsheet on Your Page
Create Pop-Up Hints
Create Drag-and-Drop Lists
Build Dynamic HTML Graphs
Section Your Content with Spinners
Create Drop-Down Stickies
Create Dynamic Navigation Menus
Obscure JavaScript Dynamically
Build a DHTML Binary Clock
Tame Ajax with JSON
Make a DHTML Slideshow
Add Vector Graphics with PHP
Build a Color Selector
Create Link Graphs
Create an Interactive Calendar
Create the Google Maps Scrolling Effect
Chapter 4
Graphics
Hacks 27–33: Introduction
Create Thumbnail Images
Create Beautiful Graphics with SVG
Simplify Your Graphics with Objects
Split One Image into Multiple Images
Create Graphs with PHP
Create Image Overlays
Access Your iPhoto Pictures with PHP
Chapter 5
Databases and XML
Hacks 34–50: Introduction
Design Better SQL Schemas
Create Bulletproof Database Access
Create Dynamic Database Access Objects
Generate CRUD Database Code
Read XML on the Cheap with Regular Expressions
Export Database Schema as XML
Create a Simple XML Query Handler for Database Access
Generate Database SQL
Generate Database Select Code
Convert CSV to PHP
Scrape Web Pages for Data
Suck Data from Excel Uploads
Load Your Database from Excel
Search Microsoft Word Documents
Create RTF Documents Dynamically
Create Excel Spreadsheets Dynamically
Create a Message Queue
Chapter 6
Application Design
Hacks 51–66: Introduction
Create Modular Interfaces
Support Wiki Text
Turn Any Object into an Array
Create XML the Right Way
Fix the Double Submit Problem
Create User-Customizable Reports
Create a Login System
Apply Security by Role
Migrate to MD5 Passwords
Make Usable URLs with mod_rewrite
Build an Ad Redirector
Add a Buy Now Button
Find Out Where Your Guests Are Coming From
Import Information from vCards
Create vCard Files from Your Application's Data
Create a Shopping Cart
Chapter 7
Patterns
Hacks 67–78: Introduction
Observe Your Objects
Create Objects with Abstract Factories
Flexible Object Creation with Factory Methods
Abstract Construction Code with a Builder
Separate What from How with Strategies
Link Up Two Modules with an Adapter
Write Portable Code with Bridges
Build Extensible Processing with Chains
Break Up Big Classes with Composites
Simplify APIs Using a Façade
Create Constant Objects with Singletons
Ease Data Manipulation with Visitors
Chapter 8
Testing
Hacks 79–85: Introduction
Test Your Code with Unit Tests
Generate Your Unit Tests
Check for Broken Links
Test Your Application with Simulated Users
Test Your Application with Robots
Spider Your Site
Generate Documentation Automatically
Chapter 9
Alternative UIs
Hacks 86–94: Introduction
Create Custom Maps with MapServer
Build GUI Interfaces with GTk
Send RSS Feeds to Your IM Application Using Jabber
IRC Your Web Application
Read RSS Feeds on Your PSP
Search Google by Link Graph
Create a New Interface for Amazon.com
Send SMS Messages from Your IM Client
Generate Flash Movies on the Fly
Chapter 10
Fun Stuff
Hacks 95–100: Introduction
Create Custom Google Maps
Create Dynamic Playlists
Create a Media Upload/Download Center
Check Your Network Game with PHP
Put Wikipedia on Your PSP
Create a Weather Showdown
Colophon
Return to
PHP Hacks