PHP Hacks: Tips & Tools For Creating Dynamic Websites and over one million other books are available for Amazon Kindle. Learn more

Buy New

or
Sign in to turn on 1-Click ordering.
or
Amazon Prime Free Trial required. Sign up when you check out. Learn More
Buy Used
Used - Acceptable See details
$5.25 & eligible for FREE Super Saver Shipping on orders over $25. Details

or
Sign in to turn on 1-Click ordering.
 
   
Kindle Edition
 
   
More Buying Choices
Have one to sell? Sell yours here
PHP Hacks: Tips & Tools For Creating Dynamic Websites
 
 
Start reading PHP Hacks: Tips & Tools For Creating Dynamic Websites on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

PHP Hacks: Tips & Tools For Creating Dynamic Websites [Paperback]

Jack Herrington D. (Author)
4.3 out of 5 stars  See all reviews (19 customer reviews)

List Price: $29.95
Price: $19.67 & eligible for FREE Super Saver Shipping on orders over $25. Details
You Save: $10.28 (34%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Want it delivered Tuesday, January 31? Choose One-Day Shipping at checkout. Details

Formats

Amazon Price New from Used from
Kindle Edition $14.39  
Paperback $19.67  
Like this book? Find similar titles from O'Reilly and Partners in our O'Reilly Bookstore.

Book Description

Hacks December 19, 2005

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.


Frequently Bought Together

Customers buy this book with PHP Cookbook: Solutions and Examples for PHP Programmers $27.37

PHP Hacks: Tips & Tools For Creating Dynamic Websites + PHP Cookbook: Solutions and Examples for PHP Programmers
  • This item: PHP Hacks: Tips & Tools For Creating Dynamic Websites

    In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details

  • PHP Cookbook: Solutions and Examples for PHP Programmers

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details



Editorial Reviews

About 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.


Product Details

  • Paperback: 480 pages
  • Publisher: O'Reilly Media; First Edition edition (December 19, 2005)
  • Language: English
  • ISBN-10: 0596101392
  • ISBN-13: 978-0596101398
  • Product Dimensions: 9 x 6.2 x 1.2 inches
  • Shipping Weight: 1.4 pounds (View shipping rates and policies)
  • Average Customer Review: 4.3 out of 5 stars  See all reviews (19 customer reviews)
  • Amazon Best Sellers Rank: #381,129 in Books (See Top 100 in Books)

More About the Author

You can keep up with Jack's work and his writing at http://jackherrington.com.

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.

 

Customer Reviews

19 Reviews
5 star:
 (13)
4 star:
 (2)
3 star:
 (1)
2 star:
 (2)
1 star:
 (1)
 
 
 
 
 
Average Customer Review
4.3 out of 5 stars (19 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

20 of 20 people found the following review helpful:
4.0 out of 5 stars Useful For The Ideas It Offers; Graphics, Database and Testing Hacks, February 5, 2006
By 
This review is from: PHP Hacks: Tips & Tools For Creating Dynamic Websites (Paperback)
I tried several of the hacks in this book and quickly scanned some others. It offers numerous ideas for dynamic web page presentation. Hack 11, "Put an Interactive Spreadsheet on Your Page", provides a fresh way to present tabular data in an Excel-like grid format, using a proprietary solution called ActiveWidgets. I downloaded the free version of the ActiveWidgets code and ran this hack. It is giving me ideas for how to present the kind of tabular data that might look good on a web page. At no cost, you can study a given bit of PHP code and decide for yourself if you can put it to further use.

I also tried Hack 10, "Send HTML Email". It works fine as stated, and for the first time I learned how to construct a multipart email. That is what prompted me to implement the hack, I have always wanted to do exactly this. I have some work to do with my sendmail mail transfer agent (MTA) software for this to work even better. The hack can be improved by showing how to avoid the problem of the MTA writing the wrong from and to email addresses and how to work around potential mail relaying issues. The bottom line, however, is that the code presented works as indicated.

I experimented with Hacks 4, "Build A Breadcrumb Trail", and 12, "Create Popup Hints". These work acceptably.

An exciting hack that I haven't tried yet is #44, "Scrape Web Pages For Data". I would like to use this one to scrape weather-related data from http://nws.noaa.gov/ for my zip code.

Another attention-getter are the hacks presented in Chapter 8, "Testing". I have not tried these hacks myself, but I think unit testing needs more attention in web pages that utilize heavy scripting, and I'll be sure to experiment with these hacks in two projects of my own that are currently ongoing. I definitely feel the need of automated testing.

Other good points about this book is that it offers hacks which cover graphics tricks such as implementing Scalable Vector Graphics (SVG). SVG deserves attention because the image renditions possible are stunning, and you can render them right now. Recent builds of Mozilla and Firefox support SVG natively and you do not need the Adobe plugin with these browsers. Author Herrington neglects to state this in Hack 28. When you see the graphical renditions you realize they are worth implementing in your PHP code.

I like the numerous screen shots the book provides. They offer a way to check my own results against what he suggests or shows are possible.

I would have given this book a 5 star rating if I had seen hacks that implement PHP Data Objects (PDO) with databases such as MySQL and SQLite. PDOs have been available in PHP for a long time now, I use them in most of my coding because they work so well and offer a cleaner interface to the database engine than the "traditional" PHP code taught in a lot of books. Likewise, there is a focus on PEAR programming, but in PHP version 6, which is now in development, there is no longer a default install of PEAR. Herrington also didn't test his Hacks code on different platforms. He appears to have settled on the Windows versions of Firefox 1.x, Apache server, and PHP. There is some reliance on Internet Explorer. I can see the results when I test his hacks in Mozilla and Firefox on the Linux OS. Indeed, it doesn't look like Herrington did extensive research for the book; otherwise he would have quickly learned that SVG is supported natively in Firefox. There is too much code printed, and not enough discussion about the code itself. I can download the example code easily enough; why print it at the expense of discussing it? The book index also needs improvement. You can see entries for "ActiveWidgets", for example, but not a related one for "widgets".

I ran all my tests of these hacks on Fedora Core 4 Linux, running MySQL 5.0.18, SQLite 3.2.x and higher, and development versions of PHP 6 available from http://snaps.php.net/ . I did not test these in Microsoft Windows XP.

This book belongs on your desk as you code PHP. I recommend studying it for the ideas it offers.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


13 of 14 people found the following review helpful:
5.0 out of 5 stars Outstanding PHP Tips & Tricks Book, March 10, 2006
By 
This review is from: PHP Hacks: Tips & Tools For Creating Dynamic Websites (Paperback)
'PHP Hacks' by Jack Herrington truly is a book of hacks, tips, and tricks that I have found to be very useful. Covering 100 different ways to use PHP to perform a myriad of different tasks, this book covers many of the neat things that can be done to turn your web site from 'bland to grand' with little effort required!!

Some highlights of what this book will enable you to do with your PHP-based web site:

Create a skinnable interface
Add tabs to your web interface
Put an interactive spreadsheet on your page
Create drop down lists
Create dynamic menus for your site
Make a DHTML slideshow
Create an interactive calendar
Create thumbnail images
Read XML easily with regular expressions
Create RTF and Excel documents dynamically
Turn any object into an array
Create a login system for your web site

Aside from these top hacks/tips that I especially enjoyed, there is also time spent on better object oriented development with PHP, advice for testing your site out, and a whole myriad of other outstanding things you can do!

If you use PHP at your job and you want to tack on some more skills, you would be at a loss if you didn't pick up a copy of PHP Hacks.

***** HIGHLY RECOMMENDED
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


6 of 6 people found the following review helpful:
5.0 out of 5 stars best PHP reference I have used, bar none, February 20, 2006
This review is from: PHP Hacks: Tips & Tools For Creating Dynamic Websites (Paperback)
I've read at least a dozen books on web development with PHP. This book is the best, by far!

The good:
* Excellent coverage of elegant PHP for dealing with databases and XML
* Outstanding explanation of automated code generation (a must for professional PHP developers)
* Description (and code implementation) of how to use design patterns with PHP. Former J2EE guys will love this.
* High quality prose and clear descriptions. I did not find any grammatical or spelling errors.
* Light sense of humor (without the unnecessary banter that one finds in most "... for Dummies" books)

The bad:
* Nothing.

As a software developer of 10 years, I give this book my highest recommendation.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews











Only search this product's reviews



Inside This Book (learn more)
Key Phrases - Statistically Improbable Phrases (SIPs): (learn more)
test your application, abstract factories, simulated users, message queue, import information, color selector, interactive spreadsheet, hacking the hack, regular expression tester, test your code, binary clock, bulletproof database access, php hacks, php echo, spreadsheets dynamically, php foreach, navigate your browser, public function construct, jabber account, scrolling effect, preg match, public function add, php require, php phpinfo, hack shows
Key Phrases - Capitalized Phrases (CAPs): (learn more)
Application Design, Alternative Uls, Web Design, Fun Stuff, Google Maps, Mozilla Firefox, Done Figure, Split One Image, Build Dynamic, Apply Security, Generate Flash Movies, Create Custom Maps, Code Generation, Microsoft Word, Flood Statement, Put Wikipedia, Search Google, Jack Herrington, Multiple Images, Internet Explorer, Buy Now Button, Generate Database Select Code, Design Better, Interactive Calendar, Media Upload
Browse Sample Pages:
Front Cover | Table of Contents | First Pages | Index | Back Cover | Surprise Me!
Search Inside This Book:

What Other Items Do Customers Buy After Viewing This Item?


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(12)
(2)
(2)

Your tags: Add your first tag
 

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   
Related forums



So You'd Like to...


Create a guide


Look for Similar Items by Category


Look for Similar Items by Subject