Buying Options
PHP Hacks
Print $29.95
Add to Cart
Print+Ebook $32.95
Add to Cart
Ebook $23.99
Add to Cart
Safari Books Online
Add to Cart
What is this?
Print £22.99
Add to Cart
What is this?
Description
This valuable guide offers both practical and fun PHP programming techniques. Learn to develop more robust PHP applications by improving your database design, automating application testing, and employing design patterns in your PHP scripts and classes. Image and application hacks explain how to create custom MP3 broadcasts, integrate with iTunes, and generate PDFs. Designed for all PHP programmers, from newcomers to experts.
Full Description
Table of Contents
  1. Chapter 1 Installation and Basics

    1. Hacks 1–2: Introduction

    2. Install PHP

    3. Install PEAR Modules

  2. Chapter 2 Web Design

    1. Hacks 3–10: Introduction

    2. Create a Skinnable Interface

    3. Build a Breadcrumb Trail

    4. Create HTML Boxes

    5. Add Tabs to Your Web Interface

    6. Give Your Customers Formatting Control with XSL

    7. Build Lightweight HTML Graphs

    8. Properly Size Image Tags

    9. Send HTML Email

  3. Chapter 3 DHTML

    1. Hacks 11–26: Introduction

    2. Put an Interactive Spreadsheet on Your Page

    3. Create Pop-Up Hints

    4. Create Drag-and-Drop Lists

    5. Build Dynamic HTML Graphs

    6. Section Your Content with Spinners

    7. Create Drop-Down Stickies

    8. Create Dynamic Navigation Menus

    9. Obscure JavaScript Dynamically

    10. Build a DHTML Binary Clock

    11. Tame Ajax with JSON

    12. Make a DHTML Slideshow

    13. Add Vector Graphics with PHP

    14. Build a Color Selector

    15. Create Link Graphs

    16. Create an Interactive Calendar

    17. Create the Google Maps Scrolling Effect

  4. Chapter 4 Graphics

    1. Hacks 27–33: Introduction

    2. Create Thumbnail Images

    3. Create Beautiful Graphics with SVG

    4. Simplify Your Graphics with Objects

    5. Split One Image into Multiple Images

    6. Create Graphs with PHP

    7. Create Image Overlays

    8. Access Your iPhoto Pictures with PHP

  5. Chapter 5 Databases and XML

    1. Hacks 34–50: Introduction

    2. Design Better SQL Schemas

    3. Create Bulletproof Database Access

    4. Create Dynamic Database Access Objects

    5. Generate CRUD Database Code

    6. Read XML on the Cheap with Regular Expressions

    7. Export Database Schema as XML

    8. Create a Simple XML Query Handler for Database Access

    9. Generate Database SQL

    10. Generate Database Select Code

    11. Convert CSV to PHP

    12. Scrape Web Pages for Data

    13. Suck Data from Excel Uploads

    14. Load Your Database from Excel

    15. Search Microsoft Word Documents

    16. Create RTF Documents Dynamically

    17. Create Excel Spreadsheets Dynamically

    18. Create a Message Queue

  6. Chapter 6 Application Design

    1. Hacks 51–66: Introduction

    2. Create Modular Interfaces

    3. Support Wiki Text

    4. Turn Any Object into an Array

    5. Create XML the Right Way

    6. Fix the Double Submit Problem

    7. Create User-Customizable Reports

    8. Create a Login System

    9. Apply Security by Role

    10. Migrate to MD5 Passwords

    11. Make Usable URLs with mod_rewrite

    12. Build an Ad Redirector

    13. Add a Buy Now Button

    14. Find Out Where Your Guests Are Coming From

    15. Import Information from vCards

    16. Create vCard Files from Your Application's Data

    17. Create a Shopping Cart

  7. Chapter 7 Patterns

    1. Hacks 67–78: Introduction

    2. Observe Your Objects

    3. Create Objects with Abstract Factories

    4. Flexible Object Creation with Factory Methods

    5. Abstract Construction Code with a Builder

    6. Separate What from How with Strategies

    7. Link Up Two Modules with an Adapter

    8. Write Portable Code with Bridges

    9. Build Extensible Processing with Chains

    10. Break Up Big Classes with Composites

    11. Simplify APIs Using a Façade

    12. Create Constant Objects with Singletons

    13. Ease Data Manipulation with Visitors

  8. Chapter 8 Testing

    1. Hacks 79–85: Introduction

    2. Test Your Code with Unit Tests

    3. Generate Your Unit Tests

    4. Check for Broken Links

    5. Test Your Application with Simulated Users

    6. Test Your Application with Robots

    7. Spider Your Site

    8. Generate Documentation Automatically

  9. Chapter 9 Alternative UIs

    1. Hacks 86–94: Introduction

    2. Create Custom Maps with MapServer

    3. Build GUI Interfaces with GTk

    4. Send RSS Feeds to Your IM Application Using Jabber

    5. IRC Your Web Application

    6. Read RSS Feeds on Your PSP

    7. Search Google by Link Graph

    8. Create a New Interface for Amazon.com

    9. Send SMS Messages from Your IM Client

    10. Generate Flash Movies on the Fly

  10. Chapter 10 Fun Stuff

    1. Hacks 95–100: Introduction

    2. Create Custom Google Maps

    3. Create Dynamic Playlists

    4. Create a Media Upload/Download Center

    5. Check Your Network Game with PHP

    6. Put Wikipedia on Your PSP

    7. Create a Weather Showdown

  1. Colophon

View Full Table of Contents
Product Details
Title:
PHP Hacks
By:
Jack D. Herrington
Publisher:
O'Reilly Media
Formats:
  • Print
  • Ebook
  • Safari Books Online
Print Release:
December 2005
Ebook Release:
February 2009
Pages:
480
Print ISBN:
978-0-596-10139-8
| ISBN 10:
0-596-10139-2
Ebook ISBN:
978-0-596-10588-4
| ISBN 10:
0-596-10588-6
Customer Reviews
About the Author
  1. Jack D. Herrington

    Jack Herrington is an engineer, author and presenter who lives and works in the Bay Area. His mission is to expose his fellow engineers to new technologies. That covers a broad spectrum, from demonstrating programs that write other programs in the book Code Generation in Action. Providing techniques for building customer centered web sites in PHP Hacks. All the way writing a how-to on audio blogging called Podcasting Hacks. All of which make great holiday gifts and are available online here, and at your local bookstore. Jack also writes articles for O'Reilly, DevX and IBM Developerworks.

    Jack lives with his wife, daughter and two adopted dogs. When he is not writing software, books or articles you can find him on his bike, running or in the pool training for triathlons. You can keep up with Jack's work and his writing at http://jackherrington.com.

    View Jack D. Herrington's full profile page.

Colophon

The image on the cover of PHP Hacks is a propeller beanie. The hat's name is thought to come from the early 20th-century slang term "bean," meaning "head," and it was first worn by blue-collar laborers during that time, presumably to keep their hair out of their eyes as they worked. Later, wearing beanies became a fad for young boys, and the propeller beanie is now a popular symbol of science fiction fans in comic art. This association is thought to have originated in 1948 when Ray Nelson, who would later become a science fiction author and cartoonist, supposedly suggested that the members of his science fiction club wear these hats to a science fiction convention so that they would stand out. Since Ray was a teenager in high school at the time, his father would not allow him to attend the convention, but at least one of his fellow club members, George Young, is thought to have worn his beanie to the convention. While the beanie has become an icon of geekdom, it eventually evolved into the more sporty baseball cap.

  • Book cover of PHP Hacks