PHP Cookbook

by O'Reilly Media, Inc.

$39.95
71% off
buy from amazon.com
Average Rating: * * * * half star
Sales Rank:267571 (lower is better)
Price as of:07/02/2008 2:14:21 AM MDT
Price Used:$5.99
Shipping:Free Shipping on most orders over $25*
Availability:Usually ships in 24 hours
Label:O'Reilly Media, Inc.
Pages:624
Binding:Paperback
Publication Date:2002-11-20
Published By:O'Reilly Media, Inc.
ASIN:1565926811
Category:Book

Authors

Editorial Reviews and Product Descriptions

Product Description

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.

Customer Reviews

Good book for programmers - Reviewed on 2008-05-06
* * * * *

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 languages out there. You should however have an idea of how a data driven website works.
There's a reason its O'Rielly - Reviewed on 2008-05-03
* * * * *
1 customer found this review not to be helpful.
O'Rielly is a name I trust, and often look to for technical manuals. Their cookbooks and pocket guides are particularly sweet.


I am constantly pulling this book for snippets of code. Converting dates all around, array manipulation all the mundane but oh-so-common choirs.

I have already added an extensive collections of methods and classes based on the book's code. With my newly found admiration of Object-Oriented design and development I am able to reuse the code I create once again and again.

If you are new to Object Oriented coding, check out
Object-Oriented PHP: Concepts, Techniques, and Code

Together you can build powerful classes of date or array methods to handle anything you'll come across, and anything new only makes them better!
Great way to improve your PHP! - Reviewed on 2008-04-24
* * * * *

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. There are 26 chapters of problem-solving recipes that will not only get you over the current hurdle but provide for learning in quick bits. Take a couple minutes, try something that interests you, and add it to your toolbox.

Awesome book!
Good for intermediate developer - Reviewed on 2008-04-13
* * * *

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.

It also isn't a full solution for your site. You can't by this book and expect it to provide a complete solution for your programming needs.

What is it. It is a collection of discrete coding examples of how to program. It's not a book of syntax. It is a book of techniques that you can learn and then use as needed on your own projects.

I haven't read this book from end to end but when I recently had my first XML project it was useful to learn my different options on how to approach the project. Next I will be working on improving security. Again it has good examples that I can use and MODIFY for my own needs.

Just what I wanted - Reviewed on 2008-03-02
* * * * *

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. With PHP Cookbook, all I need do is turn to the table of contents, find the section I need, and there's the solution. The code is well written and the descriptions very useful.
Read More Customer Reviews »
Go To Amazon Product Page

* - See Amazon Product Page for shipping and pricing details.


Book Subjects