Join Amazon Prime and ship Two-Day for free and Overnight for $3.99. Already a member? Sign in.

 

or
Sign in to turn on 1-Click ordering.
 
 
More Buying Choices
41 used & new from $4.89

Have one to sell? Sell yours here
 
   
PHP Cookbook
 
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get yours here.
 
  
4.5 out of 5 stars See all reviews (39 customer reviews)

List Price: $39.95
Price: $30.36 & this item ships for FREE with Super Saver Shipping. Details
You Save: $9.59 (24%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Temporarily out of stock.
Order now and we'll deliver when available. We'll e-mail you with an estimated delivery date as soon as we have more information. Your account will only be charged when we ship the item.
Ships from and sold by Amazon.com. Gift-wrap available.

19 new from $6.66 22 used from $4.89
Also Available in: List Price: Our Price: Other Offers:
Hardcover Order it used!
Paperback (2) $44.99 $29.69 49 used & new from $22.98
There is a newer edition of this item:
PHP Cookbook (Cookbooks (O'Reilly)) PHP Cookbook (Cookbooks (O'Reilly)) 4.5 out of 5 stars (39)
$29.69
In Stock.
What Do Customers Ultimately Buy After Viewing This Item?

Frequently Bought Together

PHP Cookbook + Programming PHP + Web Database Applications with PHP & MySQL, 2nd Edition
  • This item: PHP Cookbook by David Sklar

    Temporarily out of stock.
    Order now and we'll deliver when available. We'll e-mail you with an estimated delivery date as soon as we have more information. Your account will only be charged when we ship the item.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Programming PHP by Rasmus Lerdorf

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Web Database Applications with PHP & MySQL, 2nd Edition by Hugh E. Williams

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details


Customers Who Bought This Item Also Bought

MySQL Cookbook

MySQL Cookbook

by Paul DuBois
4.7 out of 5 stars (27)  $31.49
Web Database Applications with PHP & MySQL, 2nd Edition

Web Database Applications with PHP & MySQL, 2nd Edition

by Hugh E. Williams
4.3 out of 5 stars (57)  $29.67
JavaScript: The Definitive Guide

JavaScript: The Definitive Guide

by David Flanagan
4.4 out of 5 stars (286)  $31.49
PHP and MySQL Web Development (4th Edition) (Developer's Library)

PHP and MySQL Web Development (4th Edition) (Developer's Library)

by Luke Welling
4.4 out of 5 stars (199)  $31.49
Learning PHP 5

Learning PHP 5

by David Sklar
3.3 out of 5 stars (25)  $19.77
Explore similar items

Editorial Reviews

Review
"This book is absolutely packed with quick solutions to common obstacles or ideas in PHP. The chapters on security are worth their weight in gold, as you'll learn how to properly protect your site against unauthorised use." .NET, February 2004

Product Description
The PHP Cookbook is a collection of problems, solutions, and practical examples for PHP programmers. The book contains a unique and extensive collection of best practices for everyday PHP programming dilemmas. For every problem addressed in the book, there's a worked-out solution or "recipe" -- short, focused pieces of code that you can insert directly into your applications. But this book offers more than cut-and-paste code. You also get explanations of how and why the code works, so you can learn to adapt the problem-solving techniques to similar situations. The recipes in the PHP Cookbook range from simple tasks, such as sending a database query and fetching URLs, to entire programs that demonstrate complex tasks, such as printing HTML tables and generating bar charts. This book contains over 250 recipes -- a treasure trove of useful code for PHP programmers, from novices to advanced practitioners. Rely on the PHP Cookbook to provide quick solutions to common problems, so you can spend your time on those out-of-the-ordinary problems specific to your application.

See all Editorial Reviews

Product Details

  • Paperback: 624 pages
  • Publisher: O'Reilly Media, Inc.; illustrated edition edition (November 20, 2002)
  • Language: English
  • ISBN-10: 1565926811
  • ISBN-13: 978-1565926813
  • Product Dimensions: 9.2 x 7.1 x 1.1 inches
  • Shipping Weight: 2 pounds (View shipping rates and policies)
  • Average Customer Review: 4.5 out of 5 stars See all reviews (39 customer reviews)
  • Amazon.com Sales Rank: #504,424 in Books (See Bestsellers in Books)

Inside This Book (learn more)
Browse and search another edition of this book.

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
Check the boxes next to the tags you consider relevant or enter your own tags in the field below.
(6)

Your tags: Add your first tag
 
Help others find this product — tag it for Amazon search
No one has tagged this product for Amazon search yet. Why not be the first to suggest a search for which it should appear?

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

 

Customer Reviews

39 Reviews
5 star:
 (24)
4 star:
 (10)
3 star:
 (4)
2 star:
 (1)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.5 out of 5 stars (39 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
116 of 125 people found the following review helpful:
4.0 out of 5 stars ORA Cookbook Vs. WROX Solutions, December 16, 2002
By Kevin Peach (Seattle, USA) - See all my reviews
I ordered a copy of the "PHP Cookbook ORA", along with a copy of the "Professional PHP 4 web Development Solutions WROX". Upon reading both these books, i thought i should offer a honest review comparing the two:

Both the books were informative in their own right

o The ORA book had small snippets of code based solutions (very similar to the PHP Developers cookbook from Sterling and Andrei) that are very useful for programmers who are confounded with small to medium coding problems. However, there was nothing enterprising about the coverage, that one could not achieve from using a combination of the online docs + mailing lists. Another downside was that i could not find full solutions that i could re-use in my projects.

On the Other hand, i found

o The WROX book offered complete solutions to real world problems - a Simple/advanced CMS (the core of which you can plug into your site), a simple search engine, a classified ads board, and lots of cool creative case study solutions that i could extend to use in my hobby sites. The content was very enterprising and all of the solutions presented are the most popular one's amongst web developers these days. More interesting is that these solutions can be completely re-used and extended into your projects. However, the downside of this book is that you would need to have prior PHP knowledge either picked up from WROX' Professional PHP 4 (as is mentioned as a pre-requisite in the book) or from the Programming PHP ORA, or any another competent professional PHP programming books in the market.

So the bottomline is:

oCare for an appetiser - Pick up the ORA book.
oCare for a full meal - Pick up the Wrox book.

I am posting this same review for both the books (so customers can benefit from it). However, i have ranked the Wrox book, a notch above this one, simply because i wanted a burp:-)

Comment Comments (2) | Permalink | Was this review helpful to you? Yes No (Report this)



 
22 of 22 people found the following review helpful:
4.0 out of 5 stars A very good "cookbook" reference, October 14, 2003
By Todd E Smith (St. Louis, MO United States) - See all my reviews
I have been programming PHP for a couple of years, and have lots of books on the subject. IMHO, I felt like this book serves the role of a "cookbook" very nicely. The contents are organized by language function via chapters (i.e. strings, numbers, arrays, regex, forms, classes, db, security, XML, etc...) which makes it convenient to find what you are looking for. Within each chapter, are very specific "Problem" and "Solutions" which contain simple code snippets (like 10 lines or less) and a description of what it does. Most problems are solved within one page. It is really concise and to the point. The index is comprehensive so it is straightforward to lookup the issue you are having, find the problem / solution and get on with your coding. You don't have to read thru lots of code or descriptions of why somebody setup a display template or complicated object. Look up your problem, read a quick solution, and BOOM, you're done and back to implementing it in your code.

I have read some other reviews for this book here that recommend the Wrox book, stating this one is too simple. I don't agree with this. The Wrox book appears to me to be another "... let's show you a bunch of full blown application examples ..." book to me, similar to the classic Welling and Thomson SAMS published text. The "cookbook" will not teach you the language, nor is that its intent; it assumes you know what you are doing.

This book is exactly what it says it is, a cookbook. If you need a quick solution to specific coding problems, at a fairly advanced level, it is a really good reference.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
14 of 14 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 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.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
Ad
 
Most Recent Customer Reviews

5.0 out of 5 stars Dog-eared, tattered & torn
I bought about 25-30 PHP/MySQL books while learning & this was easily one of my top 5 most used. Programming PHP (Oreilly) and PHP 5 in Practice (Developer's Library) are also... Read more
Published 5 months ago by D. Nathan Abbott

5.0 out of 5 stars PHP cooks - this is your recipe book
Not much to say other than that this book continues the O'Reilly's legacy of top books for self learning.
Published 5 months ago by Asaf Bar Lev

4.0 out of 5 stars Useful recipes
PHP is intended for rapid web development, and it does not take that long to get comfortable with the language itself. Read more
Published 6 months ago by cupiemayo

5.0 out of 5 stars Terrific reference!
I'll keep this short - I love this book. It's come in handy more times than I can count. It contains great solutions to plenty of real world problems. Read more
Published 7 months ago by Steven Mercatante

5.0 out of 5 stars Great semi-advanced updated book.
It is pretty good. Especially for the people who worked a little bit on php but not an expert yet. (That is me.)
Published 12 months ago by Jin Kun Lin

5.0 out of 5 stars Good book for programmers
This book is a good reference for people who already have a fair amount of programming knowledge. You don't need to necessarily know PHP since it's pretty similar to all the other... Read more
Published 14 months ago by A. Hsu

5.0 out of 5 stars There's a reason its O'Rielly
O'Rielly is a name I trust, and often look to for technical manuals. Their cookbooks and pocket guides are particularly sweet. Read more
Published 14 months ago by Edward A. Webb

5.0 out of 5 stars Great way to improve your PHP!
Each recipe states a Problem, gives a Solution, adds Discussion to help you understand the "why" behind the "what", and tosses in a "See Also" section if you need more info. Read more
Published 15 months ago by Leam Hall

4.0 out of 5 stars Good for intermediate developer
This book is not for someone who doesn't know programming. If you haven't coded at all in your life and don't basic PHP syntax you need a different book. Read more
Published 15 months ago by Michael H. Horowitz

5.0 out of 5 stars Just what I wanted
I'm coming to PHP with a strong background in Perl and this book is perfect for me. In my mind, I know what I'd do in Perl to handle a given situation. Read more
Published 16 months ago by George Roman

Only search this product's reviews



Customer Discussions

 Beta (What's this?)
New! See all customer communities, and bookmark your communities to keep track of them.
This product's forum (1 discussion)
  Discussion Replies Latest Post
Any Differences in 2nd Edition vs Original Edition? 1 May 2006
See all discussions...  
Start a new discussion
Topic:
First post:
Prompts for sign-in
  [Cancel]


Active discussions in related forums
  Discussion Replies Latest Post
C# or Java? 32 12 days ago
   


Product Information from the Amapedia Community

Beta (What's this?)



Look for Similar Items by Category


Get Within Reach

Shop for extension cords

Expand your power options with an extension cord. Get the cord type, indoor or outdoor, in the length you need in Lighting & Electrical.

Shop all extension cords

 

Best Books of 2008

Best of 2008
Find our top 100 editors' picks as well as customers' favorites in dozens of categories in our Best Books of 2008 Store.
 

Keep Your Temperature Under Control

Shop for Thermostats
Make sure the temperature is regulated in your home with a reliable thermostat.

Shop all thermostats

 

Transition Through Seasons

Shop for Supplies to Winterize Your Home
Whether it's through insulation, caulking, or maintaining your furnace, winterizing will help your home stay warm in those chilly months.

Winterize your home now

 
Ad

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Where's My Stuff?

Shipping & Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.

Look to the right column to find helpful suggestions for your shopping session.

Continue shopping: Top Sellers
Free
Free by Chris Anderson
Paranoia
Paranoia by Joseph Finder
My Soul to Lose
My Soul to Lose by Rachel Vincent
Glenn Beck's Common Sense

Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates