Start reading PHP 5 Recipes: A Problem-Solution Approach on your Kindle in under a minute. Don't have a Kindle? Get your Kindle here or start reading now with a free Kindle Reading App.

Deliver to your Kindle or other device


Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

Anybody can read Kindle books—even without a Kindle device—with the FREE Kindle app for smartphones, tablets and computers.
PHP 5 Recipes: A Problem-Solution Approach: A Problem - Solution Approach

PHP 5 Recipes: A Problem-Solution Approach: A Problem - Solution Approach [Kindle Edition]

Frank M. Kromann , Jon Stephens , Nathan A. Good , Lee Babin
4.0 out of 5 stars  See all reviews (2 customer reviews)

Print List Price: £35.49
Kindle Price: £26.93 includes VAT* & free wireless delivery via Amazon Whispernet
You Save: £8.56 (24%)
* Unlike print books, digital books are subject to VAT.


Amazon Price New from Used from
Kindle Edition £26.93  
Paperback £28.35  
Kindle Daily Deal
Kindle Daily Deal: At least 60% off
Each day we unveil a new book deal at a specially discounted price--for that day only. Learn more about the Kindle Daily Deal or sign up for the Kindle Daily Deal Newsletter to receive free e-mail notifications about each day's deal.

Special Offers and Product Promotions

  • Purchase any Kindle Book sold by and receive £1 credit to try out our Digital Music Store. Here's how (terms and conditions apply)

Product Description

Product Description

What you hold in your hands is the answer to all your PHP 5 needs. We have written PHP 5 Recipes with a number of purposes in mind.

First, this book is a source of instant solutions, including countless pieces of useful code that you can just copy and paste into your own applications, giving you answers fast and saving you hours of coding time.

Second, this book is a useful reference to the most important aspects of the PHP 5 language, including the vital functions you know and love from previous versions of PHP, as well as the functions introduced in PHP 5.

Finally, this book explains the PHP 5 functionality in detail, including the vastly improved object-oriented capabilities and the new MySQLi database extension.

We are confident PHP 5 Recipes will be a useful and welcome companion throughout your PHP journey, keeping you on the cutting edge of PHP development, ahead of the competition, and giving you all the answers you need, when you need them.

Product details

  • Format: Kindle Edition
  • File Size: 4907 KB
  • Print Length: 672 pages
  • Publisher: Apress; 1 edition (23 Sep 2005)
  • Sold by: Amazon Media EU S.à r.l.
  • Language: English
  • ASIN: B001D4WX84
  • Text-to-Speech: Enabled
  • X-Ray:
  • Average Customer Review: 4.0 out of 5 stars  See all reviews (2 customer reviews)
  • Amazon Bestsellers Rank: #1,110,606 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?

Customer Reviews

4 star
2 star
1 star
4.0 out of 5 stars
4.0 out of 5 stars
Most Helpful Customer Reviews
5 of 5 people found the following review helpful
5.0 out of 5 stars What a truly excellent idea for a book 13 Mar 2006
I’ve only just recently started playing with PHP and so I needed some examples/pointers in the right direction regarding “how to” do stuff. To date I’ve read a couple of books and trawled through the Internet looking for worked examples and then I stumbled across this book.
Not only does it explain in clear concise English, it also contains excellent examples of everyday scenarios. So I get to cut ‘n’ paste the code, tinker with it and start using it in a real world situation.
So if you’re like me and prefer to jump into a new language feet first then you can do no better than start with this book.
Comment | 
Was this review helpful to you?
3 of 3 people found the following review helpful
Using "PHP 5" in the book title, you might hope that it focuses on PHP 5's features: proper object-orientation, encapsulation, Interfaces, Iterators etc, etc, but no. Instead we have a book of short "algorithms" (recipes) - all of them invariably part of another function call - called by another function, no doubt.
If you are a script hacker who wants to know how to slice and dice a string into an array, sort it ascending, removing duplicates in the process, then fine.
In parts the book also seems like an extension of the PHP help pages - outlining every function for every API, and how you might use it.
If you have "proper" programming aspirations, then get the "PHP 5 Objects, Patterns, Practice" book by Matt Zandstra instead - that is closer to the mark.
On the positive side: the regular expressions section is very good - and even has a class definition for wrapping them up a la Java.
Strictly for beginners.
Comment | 
Was this review helpful to you?
Most Helpful Customer Reviews on (beta) 4.9 out of 5 stars  9 reviews
21 of 23 people found the following review helpful
5.0 out of 5 stars Cookbook for Tasty Snacks 31 Mar 2006
By David Stapleton - Published on
I am a big fan of 'recipe' books. They collect solutions to a variety of common problems into a single volume for easy reference, often times pointing out features in an extensive language environment that were missed when first learned. This book is no exception.

I had been coding PHP for close to a year when I picked up this book. I found most of the coding and examples to be fairly familiar, but forcing myself to read through ever page I have expanded my coding with several standard functions that I had no use for when first learning the language (and thus had forgotten about).

The writing style is very readable, and the code is targeted at the beginning to intermediate PHP coder. Beginners to PHP will benefit from reading through the entire book; those with more experience are better off skimming the first half of the book and reading the latter sections. The topics covered are fairly complete and include: arrays, strings, imaging, database, files and web forms. I would have liked a more detailed coverage of XML and SOAP, but the basics are provided for these technologies.

If you are an experienced PHP coder you may gain something from this book (like I did), but you would probably get just as much by browsing the official PHP site's function list to refresh your memory of what is available.

My recommendation, for PHP beginners, is that this book coupled with Jason Gilmore's Beginning PHP and MySQL makes an excellent pair to learn PHP and should have you up to speed in no time. Add Matt Zandstra's PHP 5 Objects, Patterns, and Practice and you have a fairly complete PHP library suitable for an experienced programmer's reference shelf.

18 of 20 people found the following review helpful
4.0 out of 5 stars Nice addition to the php 5 literature 1 Dec 2005
By John A. Suda - Published on
With all the books being published recently about PHP a new one will need to find and fill a niche to distinguish itself. "PHP 5 Recipes: A Problem-Solution Approach", published by Apress, has done so, in my view. This is an intermediate-level volume exploring PHP 5 using a "recipe" approach where the basics of PHP 5's functionality are expressed systematically but in a "small-topic" by "small-topic" manner. Cookbook style, each topic is relatively autonomous and can be individually selected, as necessary, for information or review, similarly to how many refer to the "Joy of Cooking" for help on a cooking project. It's a source for instant solutions to common PHP-related problems. There are over 200 such recipes presented.

Each of these "recipes" refers to a small element or aspect of PHP 5 and the presentations contain a brief overview of the topic, an explanation of how the code elements work, and where the code is applicable in projects. Overall, the book covers the whole range of PHP 5 functionality where each major element of PHP 5 is addressed in a recipe explaining and illuminating relevant code elements. You can easily get information about a specific PHP 5 element by going directly to the section of the book where it appears. Even better, the code snippets are designed to allow one to copy and paste them into your own applications or development easily and then to configure them as necessary. All of the code snippets are freely available for downloading at the publisher's website at [...].

There are 16 chapters and an index covering a total of 646 pages. The chapters are organized similarly to other PHP primers, covering the basic elements of PHP - data types, operations, arrays, strings, variables, files and directories, dates and times, functions, and regular expressions. The coverage for much of these concepts is relatively mundane and unoriginal. The discussion of dynamic imaging, however, is an exception. The writing throughout, however, is solid and clear. The book emphasizes the most important elements of new PHP 5. The object-oriented programming elements especially are covered - classes, objects, protected class variables, exception handling, interfaces, and the new mysqli database extension. The authors' discussions focus on PHP 5.0.4, MySQL 4.1, and cover Linux and Windows environments.

The book is directed at PHP programmers looking to learn the elements introduced by PHP 5, and for those looking to find fast solutions to coding problems. It assumes a basic knowledge of PHP. Many of the recipes discuss object-oriented programming and these are some of the more advanced sections of the book. I can say that Chapter 2, which introduces the object-oriented concepts is one of the better explanations of the topic that I've read. The chapter covers constructors, destructors, methods and properties, class diagrams and examples of these concepts at work in code snippets. There are a number of interesting segments containing custom coding of classes as reusable templates from which to create "objects".

The book is well-designed and written. The discussion is clear and logical. The code snippets are well-explained. The authors are experienced programmers and developers, and Good and Stephens have authored or co-authored a number of technical books.

A large handful of the recipes contain "projects", usually appearing at the end of the overview and presentation of code snippets covering the basics of the topics. The projects usually deal with the creation of higher-end classes and objects as solutions to common coding problems. The idea here is to show PHP 5 functionality at work providing useful code sections to be dropped into your custom applications. Chapter Five concludes with a sophisticated class dealing with dates and times issues. Other chapters contain constructions of string, file, graphics, and regular expression classes.

The last five chapters deal with using the PHP code in web applications and services. This material covers cookies (including construction of a cookie class), using HTTP headers, sessions, and using query strings. Much of this material has been covered elsewhere in the many primers on PHP already published. There is a chapter on using forms and an interesting chapter on working with markup. The better chapters are on using DOM to generate markup, parsing XML, using RSS feeds, SOAP, and simple XML. The chapter on mysql is basic, except for the section on creating a "wrapper" class. The last chapter deals with communicating with Internet services, like POP, iMap, and FTP. Another project presented here is one creating object-oriented code dealing with a mail class.

This is a useful book to have in a programmer's library.
8 of 9 people found the following review helpful
5.0 out of 5 stars Great resource for PHP programmers 24 Nov 2005
By Harold McFarland - Published on
I have to admit that I really enjoy having a good recipe style book in my library whenever possible and this is a good PHP 5 recipe book. The advantage of these books is simple. You find the problem you need resolved and you follow the recipe to resolve it. This problem-solution approach is very efficient and just what you need when you just want a quick answer. With over 200 recipes it focuses on new features of PHP 5 and taking advantage of the most popular PHP extensions. Some of the areas covered include arrays, dates and times, strings, files, regular expressions, web basics, forms, markup, and MySQL. For each area the authors include various problems that are commonly encountered or that can be resolved more efficiently with the new features, the code snippet to resolve the problem, and then an in depth analysis of the code and how it works. For the PHP 5 programmer this is a valuable reference that they will be sure to be reach for often when dealing with new programming challenges. PHP 5 Recipes is highly recommended.
4 of 4 people found the following review helpful
5.0 out of 5 stars Outstanding book -- and more than advertised 8 Aug 2006
By R. Gauer - Published on
More than just a recipe book, PHP 5 Recipes is an outstanding overview of many PHP tools and techniques.... and while Apress suggests the book is published for programmers already somewhat familiar with PHP, its clear language and great example sets make it useful for someone learning PHP. Each chapter starts with a basic review of the foundation of the subject matter to be covered: the variables section, for example, begins with a "PHP 101"-style review of how PHP variables are identified and used. Each chapter then builds from these basics to cover more advanced techniques. Two final notes: First, this is certainly one of the best written programming guides I own: The language is clear and obvious effort went into making the book both readable and enjoyable. Second, the code provided through the publisher's web site is clean and typo-free, which is especially helpful (and not always a sure thing with programming books). A real resource.
5.0 out of 5 stars Solid referance. 25 Dec 2010
By jwzumwalt - Published on
Format:Paperback|Verified Purchase
It is exactly what it is advertised. It is a solid general reference. It contains well thought out general purpose routines that take the guess work out of 75% of the developer's needs. Just the right amount of explanation is given.
Were these reviews helpful?   Let us know
Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
First post:
Prompts for sign-in

Search Customer Discussions
Search all Amazon discussions

Look for similar items by category