Location:  Home » Network Security » PHP Cookbook: Solutions and Examples for PHP Programmers  

PHP Cookbook: Solutions and Examples for PHP Programmers

PHP Cookbook: Solutions and Examples for PHP ProgrammersAuthors: Adam Trachtenberg, David Sklar
Publisher: O'Reilly Media
Category: Book

List Price: $44.99
Buy Used: $18.53
as of 7/31/2010 07:10 CDT details
You Save: $26.46 (59%)



New (29) Used (21) from $18.53

Seller: srl2
Rating: 4.5 out of 5 stars 44 reviews

Media: Paperback
Edition: 2
Pages: 816
Number Of Items: 1
Shipping Weight (lbs): 2.7
Dimensions (in): 9.1 x 7 x 1.7

ISBN: 0596101015
Dewey Decimal Number: 005.2762
EAN: 9780596101015

Availability: Usually ships in 1-2 business days

Also Available In:

  • Paperback - PHP Cookbook: Solutions and Examples for PHP Programmers
  • Paperback - PHP Cookbook
  • Hardcover - PHP Cookbook

Similar Items:


Editorial Reviews:

Product Description

When it comes to creating dynamic web sites, the open source PHP language is red-hot property: used on more than 20 million web sites today, PHP is now more popular than Microsoft's ASP.NET technology. With our Cookbook's unique format, you can learn how to build dynamic web applications that work on any web browser. This revised new edition makes it easy to find specific solutions for programming challenges.

PHP Cookbook has a wealth of solutions for problems that you'll face regularly. With topics that range from beginner questions to advanced web programming techniques, this guide contains practical examples -- or "recipes" -- for anyone who uses this scripting language to generate dynamic web content. Updated for PHP 5, this book provides solutions that explain how to use the new language features in detail, including the vastly improved object-oriented capabilities and the new PDO data access extension. New sections on classes and objects are included, along with new material on processing XML, building web services with PHP, and working with SOAP/REST architectures. With each recipe, the authors include a discussion that explains the logic and concepts underlying the solution.




Customer Reviews:
Showing reviews 1-5 of 44
1 2 3 4 5 6 ...9Next »



5 out of 5 stars A reference every PHP programmer should have   January 3, 2007
Jason (Bozeman, MT USA)
16 out of 16 found this review helpful

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.



5 out of 5 stars A valuable asset for any developer   May 3, 2003
Foti Massimo (Vezia (Switzerland))
14 out of 15 found this review helpful

An excellent cookbook, following the old O'Reilly's tradition in the field. The recipes are clean, concise and elegant; the authors try to solve real world, common problems. Unlike other outdated books, the code is designed with PHP 4.2 or above in mind. A valuable asset for any developer, it assumes a decent understanding of PHP


5 out of 5 stars I am so lucky to have found this book   December 3, 2004
sevenwires
7 out of 7 found this review helpful

I have never written a review before, but I felt that I needed to put my 5-star vote in as my small token of thanks to the authors. So here it goes:

I have dabbled in PHP for a few months now, but am developing a php/mysql app for the first time. I refer to this book every single day. It's my favorite Oracle. I ask, it answers:

"How do I $MyDailyQuestion?"
"See page $MyDailyAnswer."

Sure puts a smile on my face!

This book does not make me read through pages and pages of code and explanation. Just enough code snippets and the most insightful reminders to help me solve my daily how-do-I's. It also tells you where to look up further info for each function/feature on-line.

I think you would love this book as much as I do if:
- you are somewhere between PHP super-newbie and super-master
- you have a pretty solid background in some other language
- you are using PHP now and have problems to solve everyday
- you learn well from small examples
- your vision starts to blur when presented with long chapters

My thanks to authors Sklar and Trachtenberg! Happy hunting.



5 out of 5 stars Sklar and Trachtenberg's Expertise Shines Through   December 11, 2002
8 out of 9 found this review helpful

There's really no other way to describe "The PHP Cookbook" than to point out that Trachtenberg and Sklar are obvious experts in their fields. Easy to read, concise and simple to understand, this coding cookbook provides a soup-to-nuts approach to PHP. With just an average understanding of computer code and the will to learn an exciting new approach, "The PHP Cookbook" is a choice guide for those interested.


5 out of 5 stars Filled with GREAT examples   June 25, 2003
Rick Summers (Los Angeles, CA)
8 out of 9 found this review helpful

This book has been a lifesaver for me. As is the case with all those in the Cookbook series, this book is filled with practical examples. This isn't a tutorial book, but honestly, this book combined with the online docs were all I needed to build my own web site based around PHP. I definitely encourage you to buy this book if you're hoping to learn PHP!

Showing reviews 1-5 of 44
1 2 3 4 5 6 ...9Next »




php  web  web applications  web development  web programming