A Must Have!
Along with "PHP in a Nutshell" by Paul Hudson, "Ajax Hacks" by Bruce W. Perry, and "Visual Quickpro Guide PHP 6 and MySQL 5" by Larry Ullman, PHP Hacks is a phenomenal resource for ideas for using PHP.
One of the many things I like to use with PHP is graphics. (I prefer to Use iMagick over GD since it is more object oriented). You can create dynamic images using PHP. It is also my strong belief that given future versions of PHP, sound, animation, and interactivity (like in Adobe Flash) could be developed using a PHP script. (But don't tell Adobe that. It would be like the oil industry finding out people can run cars on water or compressed air.)
PHP Hacks is a remarkable resource to jump start your understanding of PHP.
Nice broad book
Broad book, covers a little html, a little CSS, a little javascript - RSS, XML, MySQL etc. A lot of functional and usefull PHP hacks.
Solid, Quality Reference For Many Possible Uses
It's very packed full of php solutions that, instead of having you thinking: "I might need this particularly obscure thing later, but then again probably not", like a lot of other books, you'll very likely consider getting a lot of use out of at least 75% of the "hack" recipes eventually.
They're not really hacks by the way, in the negative sense of the word. (Maybe the Recipes book came out first and "Hacks" was the next best word for the title, who knows). But these hack/tips are based on fundamental technologies such as reading/writing XML, preventing double submission on ecommerce sites, making use of design patterns in PHP, great UI tips ( I immediately put one of them to use, which had a url to a popular dhtml library I didn't even know of).
A major portion of the hacks involve excellent user interface advice such as dhtml menus, generating images, etc..
Excellent real-world MySQL tips that include a basic login system, or a PHP recipe that you can use over and over to auto-generate sql CRUD (create/read/update/delete) PHP code. And the other way around. Auto-create mysql code from xml files that contain the schema for the tables.
Also recipes that involve basic knowledge in adding a paypal buy button, php unit testing, testing with simulated users. I shouldn't even attempt at trying to be specific with the types of tips. There are so many of them, varying through different levels of categories
I'd consider it a must-have for all PHP coders. And the reason why I say this, is it's very likely that you will find value in your situation, in at least 2 or 3 of the included "hacks", that would easily cancel out the price of the book. But that's a worst case scenario
Not a tutorial, a reference, or PEAR
The hacks (PHP scripts) may be good ones, but who is this book for?
If you need to learn PHP, get a tutorial book. There are several. This is NOT one. Strangely, it walks you through installing PHP as if you were a beginner, but then it dives right into the hacks with no real discussion of the language. And there are no details about the lines of script within each hack -- you're essentially being asked to take each hack as a wonderful black box from on high.
If you already know PHP pretty well, then you know you can find nearly an infinite supply of great scripts for free on the web (for example, at PEAR, the PHP Extension and Application Repository). Many of them are updated based on feedback and have detailed explanations and discussions to go along with them. Why pay for a small sampling from a book?
And if you're a PHP programmer and want a reference book for looking things up quickly, well, this certainly isn't THAT either.
So I'm again left wondering, who does that leave?
(Edit: I think O'Reilly is a great book company. I own several other O'Reilly books, recommend them highly, and use them all the time. I just have reservations about this particular book's value given that PEAR is free, has user feedback, and is constantly updated.)
quick "How to's ..."
When trying to figure out how to implement something, do you ever wish that the examples you find would just 'cut to the chase'? ... skip the theory & just show me a rough idea of how to go about it?
This book contains 100 hacks/recipes, satisfying the above need. Each is 2- 3 pages, which can (mostly) be run right from their folder (~100 folders in the downloaded code samples, of course). A hack-folderName cross-refernece would have been nice, but, hey ...
They put you on the track in moments - no need to read the whole book for any hack/recipe - just jump right in (to the problem of your day) ... and you can modify/enhance, as your needs dictate.
Code documentation is non-existent and explanation is sparse; but, they do, indeed, satisfy the need for quick examples in 2 - 3 pages!
`lovin it! NICE format ...