Advanced Search
Start Your Free Trial

Overview

Other Readers Also Read...
Programming PHP, 2nd Edition

Programming PHP, 2nd Edition
by Kevin Tatroe; Rasmus Lerdorf; Peter MacIntyre

PHP is a simple yet powerful open source scripting language that has become a big player in web development. Over a million web sites, from large corporate sites to small personal sites, are using PHP to serve dynamic web content. PHP's broad feature set, approachable syntax, and support for different operating systems and web servers make it an ideal language for rapid web development. 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 on the following topics:

  • Working with basic data types, including strings, numbers, dates and times, and arrays

  • PHP building blocks, such as variables, functions, classes, and objects

  • Web programming, including forms, database access, and XML

  • Useful features like regular expressions, encryption and security, graphics, internationalization and localization, and Internet services

  • Working with files and directories

  • Command-line PHP and PHP-GTK

  • PEAR, the PHP Extension and Application Repository

This book contains an impressive collection of useful code for PHP programmers, from novices to advanced practitioners. Instead of poking around mailing lists, online documentation, and other sources, you can 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.

Amazon.com® Reader Reviews (Ranked by Helpfulness)

Average Amazon.com® Rating: 4.5 out of 5 rating Based on 42 Ratings

Boils down what you want your scripts to do - 2010-01-23
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
A book to teach simplification in coding. For everyone who has read three or four PHP books, this book solves so many puzzles you may have created for yourself. Each recipe gives you a good basis for using a PHP function. As the recipe progresses, the book sometimes demonstrates how to simplify your code further. By the end of each recipe - usually no longer than a page or two - it introduces discussion as to the usefulness of the script or resources to read more about expanding upon the function.

Finally a book that covers more than just the basics - 2010-01-15
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
I've looked through a lot of PHP books and it is very difficult to find good ones (that is for more than the basics). This book fills in a lot of the gaps in understanding how PHP works, with explanations of more advanced techniques, like regular expressions and cURL.

Recommended.

Use it every day I program with PHP - 2009-09-28
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
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. I found the Files and Directories sections to be very chock full of information. The Array and Form sections are great too.

This book is not for beginners, because as I said, most of the fluff has been cut out and each recipe is only 1 - 3 pages long. However, if you have a strong background in other languages, then once you learn PHP's syntax (which is similar to C), this book is a great reference for when you need to look up how to do something specific. It's a lot easier than looking it up on PHP's online manual (which I have to say is excellent; thanks PHP!)

There are also a few mini programs that are excellent, like a "Tiny Wiki".

My only quam (spelling?) with this book is that the Database section doesn't cover the mysql and mysqli extensions. But, these functions are simple enough that you can just look them up anywhere.

If you do any PHP programming, then you need this book!

Fantastic job David and Adam!

Dog-eared, tattered & torn - 2009-02-09
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
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 pretty solid. If you're ready for MySQL, replace the latter with PHP and MySQL Web Development (4th Edition, Developer's Library). I also found the Apress books fairly helpful. Definitely get the Cookbook, though. You'll reference it whenever you code.

PHP cooks - this is your recipe book - 2009-01-25
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
Not much to say other than that this book continues the O'Reilly's legacy of top books for self learning.

Browse Similar Topics

Top Level Categories:
Internet/Online
Programming

Sub-Categories:
Internet/Online > Web Development
Programming > PHP

Some information on this page was provided using data from Amazon.com®. View at Amazon >


About Safari Books Online • Terms of Service • Privacy Policy • Contact Us • Corporate Licenses • Help • Accessibility | See us on FacebookSee us on Linked InSee us on TwitterRSS

Copyright 2010 Safari Books Online. All rights reserved.