PHP Hacks

PHP Hacks

by Jack D. Herrington
     
 

View All Available Formats & Editions

Programmers love its flexibility and speed; designers love its accessibility and convenience. When it comes to creating web sites, the PHP scripting language is truly a red-hot property. In fact, PHP is currently used on more than 19 million web sites, surpassing Microsoft's ASP .NET technology in popularity. Not surprisingly, this surge in usage has resulted in a

Overview

Programmers love its flexibility and speed; designers love its accessibility and convenience. When it comes to creating web sites, the PHP scripting language is truly a red-hot property. In fact, PHP is currently used on more than 19 million web sites, surpassing Microsoft's ASP .NET technology in popularity. Not surprisingly, this surge in usage has resulted in a number of PHP books hitting the market. Only one, though, takes the language beyond traditional Web programming and into mapping, graphing, multimedia, and beyond: PHP Hacks.

In PHP Hacks, author Jack Herrington wrings out his 20 years of code generation experience to deliver hands-on tools ranging from basic PHP and PEAR installation and scripting to advanced multimedia and database optimizing tricks.

On the practical side of things, PHP Hacks helps you develop more robust PHP applications by explaining how to improve your database design, automate application testing, and employ design patterns in your PHP scripts and classes. In the category of "cool," Herrington explains how to upgrade your Web interface through the creation of tabs, stickies, popups, and calendars. He even examines how to leverage maps and graphics in PHP. There's also a bounty of image and application hacks, including those that show you how to:

  • Integrate web sites with Google maps and satellite imaging
  • Dynamically display iPhoto libraries online
  • Add IRC, SMS, and Instant Messaging capabilities to your Web applications
  • Drop the latest Wikipedia dictionary onto your Sony PSP
  • Render graphics and user interfaces with SVG, DHTML, and Ajax

Whether you're a newcomer or an expert, you'll find great value in PHP Hacks, the only PHP guide that offers something useful and fun for everyone.

Editorial Reviews

bn.com
The Barnes & Noble Review
At last count, more than 22 million web domains were using PHP. But they’re not all using it as well or as creatively as they could be. That’s where PHP Hacks comes in.

This book’s been crafted to help you bring best practices into all your PHP scripts. Author Jack Herrington sees the same problems in too many PHP apps: poor database design and use; code embedded directly on pages; processing during page builds; inadequate security; and so forth. So he’s provided techniques and code samples to help you avoid those problems.

Best practices aside, this book’s just plain useful. Up front, there’s a full chapter of web design techniques: building those popular "breadcrumb trails," creating skinnable interfaces, adding tabs to your web interface, sending HTML mail and IM messages, and plenty more. You’ll create SVG graphics and use PHP’s image toolkit to generate graphs.

There’s an extensive collection of database and XML techniques: from designing better SQL schema to scraping web pages and searching Word documents. There are 16 great application design ideas, from encrypting passwords to tracking where your guests are coming from. There’s a tip on simplifying AJAX implementation. There’s a full chapter on using patterns. (And, to make up for that, there’s fun stuff like creating custom Google maps and checking Half-Life servers.)

Of course you can use PHP Hacks as a cookbook. But you can also use it as a launch pad for all sorts of creative coding. Herrington’s crafted his techniques to trigger inspiration: in fact, many have "hacking the hack" sections suggesting cool tweaks. Simply put, if you’re an experienced PHP programmer, this book will be a treat. Bill Camarda, from the March 2006 Read Only

Product Details

ISBN-13:
9780596101398
Publisher:
O'Reilly Media, Incorporated
Publication date:
12/18/2005
Series:
Hacks Series
Pages:
468
Sales rank:
1,185,505
Product dimensions:
6.18(w) x 8.98(h) x 1.17(d)

Meet the Author

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.

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >