36 used & new from $3.00

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 your Kindle here.
 
  
4.5 out of 5 stars  See all reviews (40 customer reviews)


Available from these sellers.


11 new from $5.00 25 used from $3.00

Also Available in:

List Price: Our Price: Other Offers:
Hardcover     Order it used!
Paperback (2) $44.99 $29.69 54 used & new from $20.12
There is a newer edition of this item:
PHP Cookbook PHP Cookbook 4.5 out of 5 stars (40)
$29.69
In Stock.
What Do Customers Ultimately Buy After Viewing This Item?

Customers Who Bought This Item Also Bought

Programming PHP

Programming PHP

by Kevin Tatroe
3.8 out of 5 stars (58)  $26.39
MySQL Cookbook

MySQL Cookbook

by Paul DuBois
4.7 out of 5 stars (28)  $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
Learning PHP 5

Learning PHP 5

by David Sklar
3.3 out of 5 stars (26)  $19.77
PHP Hacks: Tips & Tools for Creating Dynamic Web Sites

PHP Hacks: Tips & Tools for Creating Dynamic Web Sites

by Jack D Herrington
4.4 out of 5 stars (17)  $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.

Product Details

  • Paperback: 624 pages
  • Publisher: O'Reilly Media; 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
  • Average Customer Review: 4.5 out of 5 stars  See all reviews (40 customer reviews)
  • Amazon.com Sales Rank: #377,906 in Books (See Bestsellers in Books)

    Popular in this category: (What's this?)

    #74 in  Books > Computers & Internet > Home Computing > Internet > Web Browsers

More About the Authors

Discover books, learn about writers, read author blogs, and more.

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.
 
(6)

Your tags: Add your first tag
 

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

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

 
117 of 126 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)



 
24 of 24 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 review is from: PHP Cookbook (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.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


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

5.0 out of 5 stars Use it every day I program with PHP
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. Read more
Published 1 month ago by psulover901

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 9 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 9 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 10 months ago by ohmysohopeless

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 11 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 15 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 18 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 18 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 18 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 19 months ago by Michael H. Horowitz

Only search this product's reviews



Customer Discussions

This product's forum
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
 

Search Customer Discussions
   


Listmania!



Product Information from the Amapedia Community

Beta (What's this?)


Look for Similar Items by Category


Look for Similar Items by Subject

 

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.



Your Recent History

 (What's this?)

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