PHP Hacks
Tips & Tools For Creating Dynamic Websites
Publisher: O'Reilly Media
Released: December 2005
Pages: 468

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.

Table of Contents
Product Details
About the Author
Colophon
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyPHP Hacks
 
4.1

(based on 7 reviews)

Ratings Distribution

  • 5 Stars

     

    (4)

  • 4 Stars

     

    (2)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (1)

Reviewed by 7 customers

Sort by

Displaying reviews 1-7

Back to top

(7 of 10 customers found this review helpful)

 
1.0

There is no example for smsclient. hack

By mamay

from Ukrane

About Me Developer

Pros

  • Some ideas are valuable

Cons

  • Difficult to understand
  • Too many errors

Best Uses

  • Intermediate
  • Novice

Comments about oreilly PHP Hacks:

1.there's no text file for sms hack in the examples they offer on the site.
2.the code is almost unexplained by the authors and full of mistakes.
3. some hacks are useless, for example, obscurejs, only laughing is caused by that hack.
4.I would say Chinese quality this book has.
5.the only value are some ideas but not the code.
I wouldn"t publish this book in such a bad quality state.

it seems that the authors are very avaricious of their ideas and because of low finance benefit they could receive from it they write it in such a low quality.

Sorry for my English.

(1 of 3 customers found this review helpful)

 
4.0

The book is really good...

By Mamay

from Ukraine

About Me Designer, Developer

Pros

  • Accurate
  • Concise
  • Helpful examples

Cons

  • Difficult to understand
  • Too many errors

Best Uses

  • Intermediate

Comments about oreilly PHP Hacks:

The book is really good, but there are some buts...there are some errors in the scripts, and it's very very difficult to find them for a begginer. I have download scripts, may be there the mistakes are absent.

(2 of 4 customers found this review helpful)

 
4.0

Big bug in cal2.php script

By Anonymous

from Undisclosed

Comments about oreilly PHP Hacks:

I really loved this book as I am a php beginner. I'm also glad because I could debug a file :

If you get the scripts at http://examples.oreilly.com/phphks/

Look for cal2.php in cal directory, it was a review made by Alexander Naumann.

The calendar script works well except in one case :

when the first day of month is a sunday !

To debug, find :

# numeric weekday of the first day in

# the current monthz

$day = jddayofweek( $jd ) - 1;

and just add : if ($day<0){$day=6;}

Finally your file will look this way :

# numeric weekday of the first day in

# the current monthz

$day = jddayofweek( $jd ) - 1; if ($day<0){$day=6;}

Enjoy this great calendar !

(1 of 2 customers found this review helpful)

 
5.0

Great book

By Anonymous

from Undisclosed

Comments about oreilly PHP Hacks:

I really enjoyed this book, it gave great, useful examples that every PHP-based website can use.

But my favorite part was that he devoted an entire chapter to Design Patterns and how they are applied to PHP programming.

As an experienced programmer, but novice PHP user I really liked the approach and it got me up and running fast.

(0 of 1 customers found this review helpful)

 
5.0

Very nice!

By acachinero

from Undisclosed

Comments about oreilly PHP Hacks:

As a fan of the Hacks series, and as a fairly unexperienced PHP user, this book picked me up from the beginnings of PHP and dropped me off at the cutting edge, giving me the knowledge I yearned with a fun book through entertaining and often useful examples.

(0 of 1 customers found this review helpful)

 
5.0

Stimulating -

By Jetburg

from Undisclosed

Comments about oreilly PHP Hacks:

I have found much that is useful - it has opened my eyes to new possibilities.

Sadly, the source code for Hack #88 is not included in the handy archive.I recreated it from a file on the Oreilly German site, and compared it to the code in the book. There appears to be a problem with the function parseXML () - it dies and displays the error "could not open XML input"

(1 of 3 customers found this review helpful)

 
5.0

Best PHP reference I have used, bar none.

By Abe Usher

from Undisclosed

Comments about oreilly PHP Hacks:

Excellent PHP resource



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.

Displaying reviews 1-7

Back to top

 
Buy 2 Get 1 Free Free Shipping Guarantee
Buying Options
Immediate Access - Go Digital what's this?
Ebook: $23.99
Formats:  APK, DAISY, ePub, Mobi, PDF
Print & Ebook: $32.95
Print: $29.95