BUY THIS BOOK
Add to Cart

Print Book $39.99


Add to Cart

PDF $31.99

Safari Books Online

What is this?

Add to UK Cart

Print Book £28.50

What is this?

Looking to Reprint or License this content?

Programming PHP, Second Edition

By Kevin Tatroe, Rasmus Lerdorf, Peter MacIntyre
Second Edition  April 2006 
Pages: 540
ISBN 10: 0-596-00681-0 | ISBN 13: 9780596006815
starstarstarstarstar (Average of 2 Customer Reviews)

Buy 2 Get 1 Free Free ShippingGuarantee

Book description

As the industry standard book on PHP, all of the essentials are covered in a clear and concise manner. Language syntax and programming techniques are coupled with numerous examples that illustrate both correct usage and common idioms. With style tips and practical programming advice, this book will help you become not just a PHP programmer, but a good PHP programmer. Programming PHP, 2nd Edition, covers everything you need to know to create effective web applications with PHP.
Full Description

Programming PHP, 2nd Edition, is the authoritative guide to PHP 5 and is filled with the unique knowledge of the creator of PHP (Rasmus Lerdorf) and other PHP experts. When it comes to creating websites, the PHP scripting language is truly a red-hot property. In fact, PHP is currently used on more than 19 million websites, surpassing Microsoft's ASP .NET technology in popularity. Programmers love its flexibility and speed; designers love its accessibility and convenience.

As the industry standard book on PHP, all of the essentials are covered in a clear and concise manner. Language syntax and programming techniques are coupled with numerous examples that illustrate both correct usage and common idioms. With style tips and practical programming advice, this book will help you become not just a PHP programmer, but a good PHP programmer. Programming PHP, Second Edition covers everything you need to know to create effective web applications with PHP. Contents include:

  • Detailed information on the basics of the PHP language, including data types, variables, operators, and flow control statements
  • Chapters outlining the basics of functions, strings, arrays, and objects
  • Coverage of common PHP web application techniques, such as form processing and validation, session tracking, and cookies
  • Material on interacting with relational databases, such as MySQL and Oracle, using the database-independent PEAR DB library and the new PDO Library
  • Chapters that show you how to generate dynamic images, create PDF files, and parse XML files with PHP
  • Advanced topics, such as creating secure scripts, error handling, performance tuning, and writing your own C language extensions to PHP
  • A handy quick reference to all the core functions in PHP and all the standard extensions that ship with PHP

Praise for the first edition:

"If you are just getting into the dynamic Web development world or you are considering migrating from another dynamic web product to PHP, Programming PHP is the book of choice to get you up, running, and productive in a short time."

--Peter MacIntrye, eWeek

"I think this is a great book for programmers who want to start developing dynamic websites with PHP. It gives a detailed overview of PHP, lots of valuable tips, and a good sense of PHP's strengths."

--David Dooling, Slashdot.org

Browse within this book

Cover | Table of Contents




Featured customer reviews

Write a Review


A comment about the style,  April 28 2008
Rating: StarStarStarStarStar
Submitted by Doug Lerner   [Respond | View]

I am still just reading it. It seems like a useful book, but not as comprehensive, orderly and error-free as my O'Reilly "JavaScript" book is. Maybe the language itself is not as orderly. But it seems there are a lot of language notations that are used before being defined in a later chapter.

I am still working my way through it and may come back and increase my rating of it later on (if possible), but for now I wanted to just mention one really annoying style matter that makes the code samples hard to read (and is the reason I decided to pause and write a review).

This is a typic code sample (I bought the PDF version of the book):


function update_counter () {
static $counter = 0;
$counter++;
echo "Static counter is now $counter\n";
}
$counter = 10;
update_counter();
update_counter();
echo "Global counter is $counter\n";
Static counter is now 1
Static counter is now 2
Global counter is 10


The last three lines are the result of running the code above it. Could that not be distinguished somehow? Could there not be a separator between the code and the results? Or could not a different type style be used? Or even add a line break and say "This results in:" or something like that?

All the samples run the code and results together which make them difficult to read. I was surprised a format like that would be used.

doug




a must have PHP book,  February 14 2007
Rating: StarStarStarStarStar
Submitted by Anonymous Reader   [Respond | View]

Programming PHP is an excellent book on PHP (a weak typed scripting language that mixes presentation and code). The book contains several small mistakes in the code examples. A big plus is chapter 12 which talks about security. Bravo! Overall, a must have O'Reilly title.

Read all reviews


Media reviews
"If you expect to only buy one book on PHP ever then this may just be the one that you are looking for."
-- Stephen Chapman, Fellgall.com


"Co-written by the guy who invented PHP (Rasmus Lerdorf,) this is a must-buy book for anyone getting into PHP or web programming in general. The book does not try to cover everything about PHP…instead it gives the best coverage of the core language I’ve ever read. Buy the book."
-- Stefan Mischook, KillerPHP.com


"In 521 pages, the book covers a lot of ground and as someone who did read it from end to end, I found it readable and useful. That's a neat trick when it comes to a language such as PHP, which can be used in so many ways...In an age where PHP usage seems to always be on the increase, it's probably a good idea to have such a well-rounded reference around."
-- Taran Rampersad, KnowProSE.com



Read all reviews

See larger cover


"...the best coverage of the core language I’ve ever read. Buy the book."
--Stefan Mischook, KillerPHP.com