PHP Hacks

Pick Up in Store

Reserve and pick up in 60 minutes at your local store

Paperback
$19.67
BN.com price
$29.95 List Price (Save 34%)
Marketplace (New and Used)
from
$0.94
$29.95 List Price (Save 97%)
Usually ships within 1-2 business days
All (27)  
Used (20)  
New (7)  
Close
Sort by
Page 1 of 3
Showing 1 – 10 of 27 (3 pages)
$0.94
(Save 97%)
Seller since 2012

Feedback rating:

(397)

Condition:

New — never opened or used in original packaging.

Like New — packaging may have been opened. A "Like New" item is suitable to give as a gift.

Very Good — may have minor signs of wear on packaging but item works perfectly and has no damage.

Good — item is in good condition but packaging may have signs of shelf wear/aging or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Acceptable — item is in working order but may show signs of wear such as scratches or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Used — An item that has been opened and may show signs of wear. All specific defects should be noted in the Comments section associated with each item.

Refurbished — A used item that has been renewed or updated and verified to be in proper working condition. Not necessarily completed by the original manufacturer.

Good
Sound copy, mild reading wear. May have scuffs, minor notes, highlighting or underlining.

Ships from: Hillsboro, OR

Usually ships in 1-2 business days

  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$1.75
(Save 94%)
Seller since 2008

Feedback rating:

(281)

Condition: Like New
2005 Paperback Fine Like new condition. Absolutely no highlighting or markings inside the books. All covers subject to prior use. (If the book was published with a CD/DVD it ... will be included in your copy. ) Read more Show Less

Ships from: Front Royal, VA

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$1.99
(Save 93%)
Seller since 2009

Feedback rating:

(4096)

Condition: Good
Only lightly used. Book has minimal wear to cover and binding. A few pages may have small creases and minimal underlining. Book selection as BIG as Texas.

Ships from: Dallas, TX

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$1.99
(Save 93%)
Seller since 2006

Feedback rating:

(49867)

Condition: Good
Former Library book. Shows some signs of wear, and may have some markings on the inside. 100% Money Back Guarantee. Shipped to over one million happy customers. Your purchase ... benefits world literacy! Read more Show Less

Ships from: Mishawaka, IN

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$1.99
(Save 93%)
Seller since 2010

Feedback rating:

(1004)

Condition: Acceptable
Selection as wide as the Mississippi.

Ships from: St Louis, MO

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$1.99
(Save 93%)
Seller since 2010

Feedback rating:

(17)

Condition: Like New
0596101392 Like new condition. Absolutely no highlighting or markings inside the books. All covers subject to prior use. (If the book was published with a CD/DVD it will be ... included in your copy.) There is never any highlighting or underlining in our books. All covers are subject to prior use and while some of them may be in like new condition, others may have small dings or creases. (If an item is listed as having a CD/DVD, it will be included.) All orders usually ship within 48 hours via media mail or priority mail. Read more Show Less

Ships from: Front Royal, VA

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$1.99
(Save 93%)
Seller since 2010

Feedback rating:

(17)

Condition: Very Good
0596101392 Very good condition. Absolutely no highlightings or markings inside the books. All covers subject to prior use. (If the book was listed with a cd/dvd, it will be ... included.) There is never any highlighting or underlining in our books. All covers are subject to prior use and while some of them may be in like new condition, others may have small dings or creases. (If an item is listed as having a CD/DVD, it will be included.) All orders usually ship within 48 hours via media mail or priority mail. Read more Show Less

Ships from: Front Royal, VA

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$1.99
(Save 93%)
Seller since 2010

Feedback rating:

(2596)

Condition: Good

Ships from: Lakewood, WA

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$1.99
(Save 93%)
Seller since 2009

Feedback rating:

(4096)

Condition: Good
Only lightly used. Book has minimal wear to cover and binding. A few pages may have small creases and minimal underlining. Book selection as BIG as Texas.

Ships from: Dallas, TX

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$1.99
(Save 93%)
Seller since 2009

Feedback rating:

(4096)

Condition: Very Good
Nice condition with minor indications of previous handling. Book selection as BIG as Texas.

Ships from: Dallas, TX

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
Page 1 of 3
Showing 1 – 10 of 27 (3 pages)
Close
Sort by
NOOK Book (eBook)
$16.07
BN.com price
$23.99 List Price (Save 33%)

Available on NOOK devices and apps

  • Nook Devices
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for iPad
  • NOOK for iPhone
  • NOOK for Android
  • NOOK for Android (Tablet)
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK Study
  • NOOK for PC
  • NOOK for Mac

Need a NOOK? Explore Now

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.

Offering hands-on tools that range from basic PHP and Pear installation and scripting to advanced multimedia and database optimizing tricks, this text includes hacks for integrating with iTunes, generating PDFs and using X10 to control home heating and security with PHP applications.

Editorial Reviews

From Barnes & Noble
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
  • Pages: 480
  • Sales rank: 1,098,170
  • Series: Hacks Series
  • Product dimensions: 6.00 (w) x 9.05 (h) x 1.15 (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.

Table of Contents

Dedication; Credits; About the Author; Contributors; Preface; Why PHP Hacks?; How to Use This Book; How This Book Is Organized; Conventions Used in This Book; Using Code Examples; How to Contact Us; Got a Hack?; Safari Enabled; Chapter 1: Installation and Basics; 1.1 Hacks 1–2: Introduction; 1 Install PHP; 2 Install PEAR Modules; Chapter 2: Web Design; 2.1 Hacks 3–10: Introduction; 3 Create a Skinnable Interface; 4 Build a Breadcrumb Trail; 5 Create HTML Boxes; 6 Add Tabs to Your Web Interface; 7 Give Your Customers Formatting Control with XSL; 8 Build Lightweight HTML Graphs; 9 Properly Size Image Tags; 10 Send HTML Email; Chapter 3: DHTML; 3.1 Hacks 11–26: Introduction; 11 Put an Interactive Spreadsheet on Your Page; 12 Create Pop-Up Hints; 13 Create Drag-and-Drop Lists; 14 Build Dynamic HTML Graphs; 15 Section Your Content with Spinners; 16 Create Drop-Down Stickies; 17 Create Dynamic Navigation Menus; 18 Obscure JavaScript Dynamically; 19 Build a DHTML Binary Clock; 20 Tame Ajax with JSON; 21 Make a DHTML Slideshow; 22 Add Vector Graphics with PHP; 23 Build a Color Selector; 24 Create Link Graphs; 25 Create an Interactive Calendar; 26 Create the Google Maps Scrolling Effect; Chapter 4: Graphics; 4.1 Hacks 27–33: Introduction; 27 Create Thumbnail Images; 28 Create Beautiful Graphics with SVG; 29 Simplify Your Graphics with Objects; 30 Split One Image into Multiple Images; 31 Create Graphs with PHP; 32 Create Image Overlays; 33 Access Your iPhoto Pictures with PHP; Chapter 5: Databases and XML; 5.1 Hacks 34–50: Introduction; 34 Design Better SQL Schemas; 35 Create Bulletproof Database Access; 36 Create Dynamic Database Access Objects; 37 Generate CRUD Database Code; 38 Read XML on the Cheap with Regular Expressions; 39 Export Database Schema as XML; 40 Create a Simple XML Query Handler for Database Access; 41 Generate Database SQL; 42 Generate Database Select Code; 43 Convert CSV to PHP; 44 Scrape Web Pages for Data; 45 Suck Data from Excel Uploads; 46 Load Your Database from Excel; 47 Search Microsoft Word Documents; 48 Create RTF Documents Dynamically; 49 Create Excel Spreadsheets Dynamically; 50 Create a Message Queue; Chapter 6: Application Design; 6.1 Hacks 51–66: Introduction; 51 Create Modular Interfaces; 52 Support Wiki Text; 53 Turn Any Object into an Array; 54 Create XML the Right Way; 55 Fix the Double Submit Problem; 56 Create User-Customizable Reports; 57 Create a Login System; 58 Apply Security by Role; 59 Migrate to MD5 Passwords; 60 Make Usable URLs with mod_rewrite; 61 Build an Ad Redirector; 62 Add a Buy Now Button; 63 Find Out Where Your Guests Are Coming From; 64 Import Information from vCards; 65 Create vCard Files from Your Application's Data; 66 Create a Shopping Cart; Chapter 7: Patterns; 7.1 Hacks 67–78: Introduction; 67 Observe Your Objects; 68 Create Objects with Abstract Factories; 69 Flexible Object Creation with Factory Methods; 70 Abstract Construction Code with a Builder; 71 Separate What from How with Strategies; 72 Link Up Two Modules with an Adapter; 73 Write Portable Code with Bridges; 74 Build Extensible Processing with Chains; 75 Break Up Big Classes with Composites; 76 Simplify APIs Using a Façade; 77 Create Constant Objects with Singletons; 78 Ease Data Manipulation with Visitors; Chapter 8: Testing; 8.1 Hacks 79–85: Introduction; 79 Test Your Code with Unit Tests; 80 Generate Your Unit Tests; 81 Check for Broken Links; 82 Test Your Application with Simulated Users; 83 Test Your Application with Robots; 84 Spider Your Site; 85 Generate Documentation Automatically; Chapter 9: Alternative UIs; 9.1 Hacks 86–94: Introduction; 86 Create Custom Maps with MapServer; 87 Build GUI Interfaces with GTk; 88 Send RSS Feeds to Your IM Application Using Jabber; 89 IRC Your Web Application; 90 Read RSS Feeds on Your PSP; 91 Search Google by Link Graph; 92 Create a New Interface for Amazon.com; 93 Send SMS Messages from Your IM Client; 94 Generate Flash Movies on the Fly; Chapter 10: Fun Stuff; 10.1 Hacks 95–100: Introduction; 95 Create Custom Google Maps; 96 Create Dynamic Playlists; 97 Create a Media Upload/Download Center; 98 Check Your Network Game with PHP; 99 Put Wikipedia on Your PSP; 100 Create a Weather Showdown; Colophon;

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
If you've bought this product, tell the world how you liked it.
Write a Review

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)
500 character limit