DZone: Your Personal Tech Universe Book Zone
Published on Book Zone (http://books.dzone.com)
Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems
By davidwalsh
Created 2008/03/18 - 7:43am

ISBN or ASIN: 
1593271735
Book Author(s): 
William Steinmetz
Brian Ward
Publisher: 
No Starch Press
Publication Date: 
February 9, 2008
One Minute Review
Positives: 
Less theory, more code.
Important reference for noobs and novices
Provides scripts to build a PHP coder's library
Negatives: 
Not as many topics covered as I would've liked
Most scripts wont help the experienced programmer
Rating
Bottom Line: 
Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems is a wicked cool publication for rookie and novice PHP programmers. The collection of useful PHP scripts provided in Wicked Cool PHP can serve as a great library for a noob or a quick reference to fix the nagging issue plaguing a novice developer's web application. If you're looking for a book that's less theory and more straight-to-the-point code, Wicked Cool PHP belongs on your bookshelf.
Relevance: 
5
Readability: 
5
Overall: 
4
Sections
Intent and Audience: 

One of the reasons that I prefer short tutorials and articles over programming books is that books generally give you five pages of theory and one page of actual code. Many times, they assume that the reader is a noob to the language (I understand that the publisher requires this and that it's not the author's fault). Not this book. Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems is a no-nonsense, "here's-the-code-here's-the-solution" type of book.

Wicked Cool PHP covers the basis of the most used facets of PHP: configuration, string manipulation, form validation, file handling, security, and more. Each code snippet is preceded by a short explanation as to the strategies used in the code. The code is presented very well and is easy to understand. Some code snippets are followed with candid explanations as to the disadvantages of using the given code.

Relevance of Material: 

Wicked Cool PHP also covers some little-discussed topics including cURL, PHP web services, and creating images with PHP. With web services becoming more and more popular every day (social networking and bookmarking APIs), the cURL and web services scripts in the book will be a great starting point for web service/XML noobs. Wicked Cool PHP wraps up with a few intermediate projects: creating a poll, e-greeting card, and basic blogging system.

Overall, Wicked Cool PHP is a solid, code-packed book for the rookie or intermediate-skilled PHP programmer that understands the basic principles of programming and security. The code provides real world problem/solution scenarios that every PHP programmer will need to know. The book also includes some less-known gems that will spark the inquisitiveness of the reader.

My only criticism of Wicked Cool PHP is that the "difficult problems" the book promises to solve aren't that difficult. The book covers strategies for keeping your web apps secure, using regular expressions, and session/cookie issues, but many other code snippets would be considered basic for any experienced PHP programmer. I would've liked to have seen topics like storing the session in a database, creating a basic MVC framework, and large form strategies.
Chapter Highlights: 

My favorite chapter of Wicked Cool PHP is chapter five: Working with Text and HTML. Regular expressions are extremely powerful and the amount of information you can acquire from simple page scraping and processing is amazing. Chapter five shows the user how to scrape a XHTML document for links, substring replacement, and converting plain text into XHTML markup.

Resources: 

http://nostarch.com/wcphp.htm [1]


Source URL: http://books.dzone.com/reviews/wicked-cool-php-real-world-scr

Links:
[1] http://nostarch.com/wcphp.htm