Customer Reviews


25 Reviews
5 star:
 (17)
4 star:
 (7)
3 star:
 (1)
2 star:    (0)
1 star:    (0)
 
 
 
 
 
Average Customer Review
Share your thoughts with other customers
Create your own review
 
 
Only search this product's reviews

The most helpful favorable review
The most helpful critical review


24 of 24 people found the following review helpful:
5.0 out of 5 stars A reference every PHP programmer should have
This is my first O'Reilly book in the "Cookbook" series. At first I thought this book would probably contain the code and instructions for building a couple of web applications such as a shopping cart or a blog engine. This isn't that book. Rather it provides the reader with code snippets that can be used as building blocks for all kinds of applications. If I had to...
Published on January 3, 2007 by Jason

versus
2 of 2 people found the following review helpful:
3.0 out of 5 stars Hit AND Miss

I've owned this book for about 2 years, my PhP coding experience being intermediate both before AND after reading it. It is by no means a lesson book, as implied by another person's review, but instead follows the term "cookbook" very well. A quick explanation of my review's title: "Hit AND Miss". It's mostly "hit" but there are a few aspects that left me feeling...
Published 22 months ago by Darkness' Ally


‹ Previous | 1 2 3 | Next ›
Most Helpful First | Newest First

24 of 24 people found the following review helpful:
5.0 out of 5 stars A reference every PHP programmer should have, January 3, 2007
By 
Jason (Bozeman, MT USA) - See all my reviews
This review is from: PHP Cookbook: Solutions and Examples for PHP Programmers (Paperback)
This is my first O'Reilly book in the "Cookbook" series. At first I thought this book would probably contain the code and instructions for building a couple of web applications such as a shopping cart or a blog engine. This isn't that book. Rather it provides the reader with code snippets that can be used as building blocks for all kinds of applications. If I had to describe this book in one sentence I would say it is as if the author took down all the "Hmm..., I wonder how that is done?" questions and created an answer key.

One thing I like about this book is that the authors don't waste the first few chapters trying to teach or give an overview of the language. Instead they hop right into the usage of the language that relates to real world stuff.

So here is a brief overview. The book covers PHP 5 and goes over many of the new and improved features. The first six chapters provide recipes for more basic subjects (strings, numbers, dates & times, arrays, variables, and functions. Again, this isn't an intro to PHP, that is another book such as Programming PHP from O'Reilly. This is that book you reach for once you have moved from PHP basics and are ready to build some real world stuff.

By chapter seven the authors are discussing classes and objects. I like using classes when coding in C++, so this is a good chapter for those who like OOP. The next nine chapters go over web stuff starting out with basic things like cookies, forms, and databases. Then the authors go into more advanced areas like session management, XML, automation and web services (REST, SOAP, Mail, FTP, LDAP, and DNS to name a few).

The next chapter [17] is on the topic of graphics. This is a cool chapter if you like to create dynamic images. Things like creating a button image on the fly, or generating charts. Graphics are great to have a knowledge of because everyone likes graphical presentation of data and this chapter can help you get there.

Chapter 18 is on security and encryption which I found rather helpful. No one wants there web application to be the link that allows data to be compromised, and this chapter deals with many of those problem areas. Chapter 19 covers localization, chapter 20 is on debugging and testing. The debugging section does a great job of getting a person setup with the tools they need to properly debug an application including creating your own exception class. This is an outstanding chapter that every programmer can appreciate since every application needs debugging.

The remaining chapters cover performance tuning, regular expressions, files, directories, command line PHP, PERL and PECL. Being a Perl guy I found it interesting to see how the authors utilized regular expressions in PHP. And the chapter on command-line PHP was outstanding; I thought the recipe for creating a PHP command shell was pretty cool.

CONCLUSION
--
This book is like having the answer key to most of the random questions a person comes up with when writing code. I found this book to be very useful, it will be one of those references that I keep close, and gets very little shelf time. It is a solid book. It is hard to say what parts I liked best because this is one of those books that you like and must have, but then as time goes on and you use it more and more its value grows. This is an excellent book and I would strongly recommend it the PHP users that want to move to the next level.
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:
4.0 out of 5 stars PEAR DB, December 6, 2006
By 
A. D. Searle (Washington State) - See all my reviews
(REAL NAME)   
This review is from: PHP Cookbook: Solutions and Examples for PHP Programmers (Paperback)
This is basically an excellent book. A lot of very useful stuff. Unlike the online PHP manual, it is on this technology called a book. This comes in handy on say a NYC subway train, where you want to brush up on some PHP, or find the solution for something you are working on.

One major warning though: all the database stuff (about 20-30 percent of the book) depends on the PEAR DB class. That is a great thing to use as are many of the PEAR classes. But there is certainly great PHP code that doesn't rely on PEAR DB.

Besides the db stuff the book has great examples with strings, numbers, I/O (files and directories), dates, etc. And being that I used to be a Reptile Biologist - you got to love that Iguana. If nothing else, just buy it for the cover.
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:
4.0 out of 5 stars Good reference, September 1, 2006
By 
Andrew Violette "A Customer" (Hoffman Estates, IL United States) - See all my reviews
(REAL NAME)   
Amazon Verified Purchase(What's this?)
This review is from: PHP Cookbook: Solutions and Examples for PHP Programmers (Paperback)
(My review refers to the 2003 edition).

This book has loads of information about stuff you do on a normal basis with PHP, including XML parsing, form processing, string and array manipulation, etc. I think the book is well written and indexed with good examples, but I think you won't get much more information than the PHP user manual.

In my opinion PHP has better free user documentation than all the other languages I use on a regular basis (Java, Ruby and PERL). You can download their user manual and PEAR manual in a whole bunch of formats, including CHM, which gives you the ability to browse it like any other Windows help file (which gives you the ability to search). Most of the points in this book are covered in the same depth in the PHP user manual and you don't have to pay for it.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


6 of 7 people found the following review helpful:
4.0 out of 5 stars ...but if you want PHP 5, this is the book!, November 18, 2006
By 
This review is from: PHP Cookbook: Solutions and Examples for PHP Programmers (Paperback)
There is no comparison between Wrox and O'Reilly books! O'Reilly wins hands-down!

This 2nd edition of the PHP Cookbook offers real, useful, insightful information. The content is not "just recipes," but a consise approach to everyday problem solving using PHP. The organization of the book exposes this problem solving as a series of recipes that answer particular problem-domain questions. The diversity of the problem-domains accounted for in this text are amazing! If it is web or Internet related, this book probably has an answer for your most demanding PHP needs.

In the fine tradition of O'Reilly books, this text is very well presented, exceptionally well edited and organized in a manner that makes sense to the reader. It is not filled with fluff or hyperbole designed to add page count the way the thick volumes at Wrox seem to do. If you need every little thought spelled out for you, maybe you should buy a "PHP for Dummies" book. Otherwise, you can't go wrong with this excellent, well presented book that truly is "Solutions and Examples for PHP Programmers."
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


2 of 2 people found the following review helpful:
3.0 out of 5 stars Hit AND Miss, March 26, 2010
This review is from: PHP Cookbook: Solutions and Examples for PHP Programmers (Paperback)

I've owned this book for about 2 years, my PhP coding experience being intermediate both before AND after reading it. It is by no means a lesson book, as implied by another person's review, but instead follows the term "cookbook" very well. A quick explanation of my review's title: "Hit AND Miss". It's mostly "hit" but there are a few aspects that left me feeling as though I was lacking in level of knowledge, something also expressed in another person's review, concerning the book's contents.

For one, for up to intermediate small issues it definitely hits the mark. The code snippets are (mostly) well-commented or explained in the surrounding paragraphs, as well as (from what I can tell) easy on server load. Some are (of course) more processor-intense than others, but that's the nature of any programming/scripting language: some stuff's simple and quick and other stuff is just downright tedious to type-out and (possibly) can become a thorn in the Server's side (forgive my pun).

The book's Problem-into-Solution format is very easy to follow, almost identical to a Q&A format. The table of contents in the book alone is far more extensive than I would ever expect from a book of this size, and it is definitely a wealth of knowledge, technique and guidelines up to a certain point.

If I had to pick one thing to complain about it would have to be some of the solutions themselves. My other complaints are nothing compared to this one. The following is based on my own personal preference and server settings/extensions, so if you have PEAR and like using it (most people do, it seems), then disregard the following.

A bunch of solutions are explained using PEAR. It's been so long since I've read up on PEAR that I've no clue of what it stands for or even if you have to install it a certain way. Be that as it may, I choose not to use frameworks of any kind most of the time. PEAR is at the top of my "do not use" list. I've seen what it can do, and I think it's great, but I want to get my hands dirty, and PEAR can really take that away. Back to it: the PEAR-based solutions more often than not come with no alternative solution. There is one I remember concerning pagination where it gives the pure-PEAR way and an alternative. However the alternative involves other PEAR extensions. The alternative is an alternative to only PEAR's "DB_Pager" class, and not a full alternative. One would need to know what the PEAR was doing (have PEAR) and alter the code to keep it PEAR-free if one were in my shoes. I've since been able to adapt it, it wasn't hard. But there are beginners out there who have poor skills at transposing (correct word?) code from classes or frameworks into something completely customized. When I started out it was the OREILLY PHP Cookbook and the OREILLY Learning PHP & MySQL books I started with, along with some guitar books for learning Christmas songs (I know, unrelated, same box though :P).

All-in-all the book is worth the price. The pros outweigh the cons almost 3 to 1. I still use this book to refresh my memory of techniques long since forgotten or fuzzy, even 2 years after I've purchased more advanced books that cover most of the same things in greater detail and moulded for greater scale. PHP as many know is very unforgiving when it comes to screw-ups, and the little things that you forget can make or break a script. I'll be keeping this book for years and years to come to dust off and refresh my memory. My website is still lacking, but heck, it's a personal website, and wouldn't be nearly as good (??? :P) as it is now without the "cookbook".
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


2 of 2 people found the following review helpful:
4.0 out of 5 stars Useful recipes, December 20, 2008
By 
This review is from: PHP Cookbook: Solutions and Examples for PHP Programmers (Paperback)
PHP is intended for rapid web development, and it does not take that long to get comfortable with the language itself. However, it is a fairly flexible language, which allows for several ways to do the same thing but perhaps one way is definitely better than others; it takes time to learn the best practices. With PHP, it is easy to produce spaghetti codes if you are not careful, while it is certainly possible to make very solid object-oriented systems as well. The best way to learn in the end is to read a lot of well-written codes by capable, programmers with experiences, but for a developer who needs to code tons of stuff and has pressure to meet deadlines, time is precious. That is why this book is useful.

Much of PHP is specially designed for web development, so the book includes a lot of essential topics dealing with web development: XML, security, dealing with form data, i18n and l10n, database, and so on. In software development, new releases are norm, and some topics discussing actively developed modules do show their ages at times. However, there are still a lot you can learn from the standard O'Reilly quality book, rather than collecting hodge podge of information available on the web.

If you know some other language already and have read one or two introductory PHP web development book already, this will be the most used book on the shelve about PHP. This book and the official online documentation gets you quite far. In my case this has been easily the most used PHP book.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


2 of 2 people found the following review helpful:
5.0 out of 5 stars Any professional PHP user needs this., November 6, 2006
This review is from: PHP Cookbook: Solutions and Examples for PHP Programmers (Paperback)
Web developers might already know PHP, but this updated second edition of a classic still remains an important desk reference to solving common problems and coding obstacles. PHP is used on millions of web sites today, so its depth and applications hold many possibilities for confusion as well as opportunities for optimization choices. PHP COOKBOOK covers all angles, from processing XML and obtaining solutions to common applications problems to working with JavaScript interactions. Any professional PHP user needs this.

Diane C. Donovan
California Bookwatch
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


1 of 1 people found the following review helpful:
4.0 out of 5 stars Boils down what you want your scripts to do, January 23, 2010
By 
J. Page (Asheville, NC USA) - See all my reviews
(REAL NAME)   
Amazon Verified Purchase(What's this?)
This review is from: PHP Cookbook: Solutions and Examples for PHP Programmers (Paperback)
A book to teach simplification in coding. For everyone who has read three or four PHP books, this book solves so many puzzles you may have created for yourself. Each recipe gives you a good basis for using a PHP function. As the recipe progresses, the book sometimes demonstrates how to simplify your code further. By the end of each recipe - usually no longer than a page or two - it introduces discussion as to the usefulness of the script or resources to read more about expanding upon the function.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


1 of 1 people found the following review helpful:
5.0 out of 5 stars Finally a book that covers more than just the basics, January 15, 2010
This review is from: PHP Cookbook: Solutions and Examples for PHP Programmers (Paperback)
I've looked through a lot of PHP books and it is very difficult to find good ones (that is for more than the basics). This book fills in a lot of the gaps in understanding how PHP works, with explanations of more advanced techniques, like regular expressions and cURL.

Recommended.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


1 of 1 people found the following review helpful:
5.0 out of 5 stars Use it every day I program with PHP, September 28, 2009
This review is from: PHP Cookbook: Solutions and Examples for PHP Programmers (Paperback)
This is an indispensable tool for PHP programmers! There are so many great, no BS examples in here. There are about 24 chapters, each with about 10 to 15 examples. I found the Files and Directories sections to be very chock full of information. The Array and Form sections are great too.

This book is not for beginners, because as I said, most of the fluff has been cut out and each recipe is only 1 - 3 pages long. However, if you have a strong background in other languages, then once you learn PHP's syntax (which is similar to C), this book is a great reference for when you need to look up how to do something specific. It's a lot easier than looking it up on PHP's online manual (which I have to say is excellent; thanks PHP!)

There are also a few mini programs that are excellent, like a "Tiny Wiki".

My only quam (spelling?) with this book is that the Database section doesn't cover the mysql and mysqli extensions. But, these functions are simple enough that you can just look them up anywhere.

If you do any PHP programming, then you need this book!

Fantastic job David and Adam!
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


‹ Previous | 1 2 3 | Next ›
Most Helpful First | Newest First

This product

PHP Cookbook: Solutions and Examples for PHP Programmers
PHP Cookbook: Solutions and Examples for PHP Programmers by David Sklar (Paperback - August 1, 2006)
$44.99 $27.37
In Stock
Add to cart Add to wishlist