Buy Used
+ £2.80 UK delivery
Used: Very Good | Details
Sold by SNaylerBooks
Condition: Used: Very Good
Comment: Orders shipped daily from the UK. All international orders sent via airmail. Professional seller. Enquiries responded to daily.
Have one to sell?
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See this image

PHP Cookbook: 1 Paperback – 30 Nov 2002

3 customer reviews

See all 4 formats and editions Hide other formats and editions
Amazon Price New from Used from
"Please retry"
"Please retry"
£18.73 £0.01

There is a newer edition of this item:

Product details

  • Paperback: 640 pages
  • Publisher: O'Reilly Media; 1 edition (30 Nov. 2002)
  • Language: English
  • ISBN-10: 1565926811
  • ISBN-13: 978-1565926813
  • Product Dimensions: 17.8 x 2.8 x 23.3 cm
  • Average Customer Review: 4.7 out of 5 stars  See all reviews (3 customer reviews)
  • Amazon Bestsellers Rank: 1,216,890 in Books (See Top 100 in Books)
  • See Complete Table of Contents

More About the Authors

Discover books, learn about writers, and more.

Product Description


"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

From the Publisher

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. It contains over 250 recipes, ranging from simple tasks to entire programs that demonstrate complex tasks, such as printing HTML tables and generating bar charts -- a treasure trove of useful code for PHP programmers, from novices to advanced practitioners.

What Other Items Do Customers Buy After Viewing This Item?

Customer Reviews

4.7 out of 5 stars
5 star
4 star
3 star
2 star
1 star
See all 3 customer reviews
Share your thoughts with other customers

Most Helpful Customer Reviews

18 of 19 people found the following review helpful By Ikenna on 29 Oct. 2005
Format: Paperback
This book is definitely not for a beginner wanting to learn php. But as a reference book, it is terrific. There are lots and lots of very useful examples.The material is very well orgainized - you can find what u need very quickly. For each topic, a commonly encountered problem is presented, and then an explanation of how to solve it, along with sample code is given. I used another book to learn php. While that was great for learning, I found it frustrating finding solutions in it to problems i faced when i started work on my php project. This book helped me immensely because it gave me the answers I needed quickly. The numerous examples were a godsend. I highly recommended it as a handy reference.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
Format: Paperback Verified Purchase
This book really helped me get into PHP years back as a complete beginner only knowing HTML at that point. It slowly builds your knowledge up with great examples and real world scenarios. I'd highly recommend for anyone wanting to get into writing PHP.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
33 of 59 people found the following review helpful By Mr J V Whitbread on 3 Aug. 2003
Format: Paperback
This book is excellent, if u often have problems, parse errors, and just dont have a clue why ur db won't connect (or it has but it wont display ur data) These often problems for php devs can be helped with this book.
DO NOT BUY THIS BOOK IF U HAVE NO OTHER PHP REFERENCE! It is simply somthing u can look in occasionaly and find a cool snipet of code, or if u have a problem troubleshoot through the book... its a good aid but ur not going to learn 2 much new stuff, just how tof ix bugs
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again

Most Helpful Customer Reviews on (beta) 22 reviews
126 of 139 people found the following review helpful
ORA Cookbook Vs. WROX Solutions 16 Dec. 2002
By Kevin Peach - Published on
Format: Paperback
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:-)
28 of 28 people found the following review helpful
A very good "cookbook" reference 14 Oct. 2003
By Todd E Smith - Published on
Format: Paperback
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.
13 of 13 people found the following review helpful
Highly recommened for web developers with basic/intermediate 2 Dec. 2003
By Juergen - Published on
Format: Paperback
If you are completely new to PHP, just forget about this book!
If you are looking for complete programming solutions, do so as well!
However, if you have some basic experience with PHP and MySQL this book is just great.
This book deserves the word "cookbook" as it contains over 600 pages of receipts (do not expect big explanations, but just snippets of code), which will help you to solve many problems. And the best of this book - in my personal opinion - is, that by reading it, you will find a lot of problems/solutions/ideas you have not thought about before.
Be warned: This book is not a real "help" for anybody who looks for the easy solution, but it will definitely help YOU to develop your site and develop yourself.
Just buy it - it's well worth the money and if this book won't pay out, none will!
13 of 14 people found the following review helpful
A valuable asset for any developer 3 May 2003
By Foti Massimo - Published on
Format: Paperback
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
8 of 8 people found the following review helpful
I am so lucky to have found this book 3 Dec. 2004
By Wendy - Published on
Format: Paperback Verified Purchase
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.
Were these reviews helpful? Let us know