Programming Books C Java PHP Python Learn more Browse Programming Books
Programming PHP and over one million other books are available for Amazon Kindle. Learn more

Sorry, this item is not available in
Image not available for
Image not available

To view this video download Flash Player

FREE Shipping on orders over $35.

Used - Very Good | See details
Access codes and supplements are not guaranteed with used items.
Have one to sell? Sell yours here
Start reading Programming PHP on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Programming PHP [Paperback]

Rasmus Lerdorf , Kevin Tatroe , Peter MacIntyre
3.7 out of 5 stars  See all reviews (64 customer reviews)

Available from these sellers.

Free Two-Day Shipping for College Students with Amazon Student


Amazon Price New from Used from
Kindle Edition $15.39  
School & Library Binding --  
Paperback --  
Paperback, May 5, 2006 --  
Shop the new
New! Introducing the, a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now
There is a newer edition of this item:
Programming PHP Programming PHP 4.2 out of 5 stars (20)
In Stock.

Book Description

May 5, 2006 0596006810 978-0596006815 Second Edition
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 we

Editorial Reviews Review

PHP is far more than a cult language or open-source icon. It's a remarkably capable language that's well integrated with lots of technologies--notably mSQL and MySQL database servers--and quite easy to learn. Programming PHP helps you up the PHP learning curve, very nearly guaranteeing that you'll find in its pages an example that illustrates every fundamental aspect of the language and its most important extension modules. Plus, there's some cool advanced stuff, like recipes for manipulating images, working with Extensible Markup Language (XML) content, and generating Adobe Acrobat (PDF) files. Rasmus Lerdorf invented PHP and quarterbacks its ongoing evolution, so there's little question of the content's authority.

The authors use a Talmudic style to explore PHP's capabilities and explain them to their readers, meaning that they like to present code and commentary in close formation, with each enhancing the other. Typically, they'll present a capability generically and show the relevant code. Then they'll dig into variations on the theme, calling attention to required code alterations as they go. This is a book about PHP itself, so practically no attention is paid to PHP Builder or other development tools. Regardless, this book will help you solve programming challenges with PHP, and enable you to write efficient, attractive code. --David Wall

Topics covered: The PHP programming language, for people who are coming to PHP with a bit of programming experience in other languages or who want to expand their existing PHP knowledge beyond the basics. Sections deal with the core language, as well as HTTP session management, database connectivity (to MySQL and Oracle, as well as with PHP Extension and Application Repository--PEAR), graphics file manipulation, XML parsing, and PDF creation. There are instructions for building a PHP extension library in C, as well as a function reference and guide to existing extensions. --This text refers to an out of print or unavailable edition of this title.

Book Description

Creating Dynamic Web Pages

Product Details

  • Paperback: 542 pages
  • Publisher: O'Reilly Media; Second Edition edition (May 5, 2006)
  • Language: English
  • ISBN-10: 0596006810
  • ISBN-13: 978-0596006815
  • Product Dimensions: 1.2 x 7 x 9.2 inches
  • Shipping Weight: 1.6 pounds
  • Average Customer Review: 3.7 out of 5 stars  See all reviews (64 customer reviews)
  • Amazon Best Sellers Rank: #626,530 in Books (See Top 100 in Books)

More About the Authors

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

Most Helpful Customer Reviews
94 of 102 people found the following review helpful
5.0 out of 5 stars Great PHP book, but for programmers June 27, 2003
By Doug M
The creator of PHP himself, Rasmus Lerdorf, put together a thorough and enlightening guide to PHP. In this book you will find everything you need to know about PHP from variables to a long list of all the PHP functions and how to use them. I found many features of PHP that I had no idea existed (such as creating PDF files). I use this book as a reference for a PHP course I teach, and its examples have been more than helpful to me in designing lesson plans.
The one caveat of this book is that it is not geared toward brand new web programmers. PHP as a language derives from C, C++ and Perl, and if you are not at least somewhat familiar with these langauges, you can get lost in this book. The authors really want to draw a parallel between PHP and its predecessor languages so that programmers can pick up PHP more easily. I really like the fact they try to do that, and it has helped me enjoy this book more. But on the flip side, it will be more difficult for new programmers to read this book. I really hope O'Reilly comes up with a "Learning PHP" book that will be more for beginning programmers, because PHP is a great language to learn, and it would be nice to have books to appeal to all levels.
In any case, for a book about PHP, you can ask for no better book than one written by the author itself. This book does keep up the tradition of professional, useful O'Reilly programming books, and is worth the time for web programmers to read. Thus I think it earns 5 stars.
Comment | 
Was this review helpful to you?
42 of 44 people found the following review helpful
Most of the books I've looked at on PHP have tied it in a three-legged race with mySQL. I was looking for something that taught the core language itself and its place in applications besides those in which it is teamed with mySQL. This appears to be that book. The core PHP language is very good at handling strings and arrays and objects. Along with standard and optional extension modules, a PHP application can work with databases like Oracle and MySQL, draw graphs, create PDF files, and parse XML files. You can write your own PHP extension modules in C to provide a PHP interface to the functions in an existing code library. You can also run PHP on Windows and use it to control other Windows applications such as Word and Excel with COM or interact with databases using ODBC. This book is a guide to all of these capabiliies of the PHP language, as well as a tutorial on the core language itself. This book assumes you have a working knowledge of HTML and that you know how to program - preferably in either C, C++, or Perl.

The first six chapters teach the core language itself. The six chapters include a dedicated introduction and a chapter on language basics which acts as a concise guide to PHP program elements such as identifiers, data types, operators, and flow-control statements. The next four chapters after that concern functions, strings, arrays, and objects respectively. The following is an outline of the remaining chapters of the book:

Chapter 7, "Web Techniques" - PHP was designed as a web-scripting language and, although it is possible to use it in purely command-line and GUI scripts, the Web accounts for the vast majority of PHP uses. A dynamic web site may have forms, sessions, and sometimes redirection, and this chapter explains how to implement those things in PHP.
Read more ›
Comment | 
Was this review helpful to you?
25 of 28 people found the following review helpful
2.0 out of 5 stars Shallow Content, Many Errors, Poor Examples October 10, 2003
I almost always turn to O'Reilly first when purchasing a new reference book, however this time I was disappointed. This book is fairly shallow in content and much of the information that you need is actually buried in the text instead of being presented as a topic unto itself.
The thing that is the most bothersome, however, is the plethora of flat out errors. Many of the examples have typos, missing code, etc. Even as a PHP novice I was constantly spotting errors which is frustrating when you're trying to learn the language.
On top of that, many of the examples exhibit just plain bad programming form (inefficient code, variables that are only used once, etc). It's the kind of thing that makes a seasoned programmer wince (and if I was reviewing the code I would send it back to the author with lots of red ink).
Comment | 
Was this review helpful to you?
12 of 12 people found the following review helpful
4.0 out of 5 stars Good Book November 27, 2002
By A Customer
Programming PHP is a great introduction to PHP. The chapters are well written with good examples that explain what is being discussed. The chapters are not written in a "read one after the other" fashion, so you can easily go to the chapter you need information on and find what you are looking for. This book did have some errors in the sample code, but if you read the text and actually try out the examples you can easily figure out what needs to be fixed to get them running. Since the O'Reilly "Programming" series is more about advanced programming issues, I think this book should have had the title "Learning PHP". It just seems to be an introduction, because it did not delve into any advanced topics. It is worthy to have on any PHP developers bookshelf. Recommended for beginners.
Comment | 
Was this review helpful to you?
9 of 9 people found the following review helpful
2.0 out of 5 stars Kind of a Rip-Off May 30, 2008
By David W
Don't get me wrong, the book is okay. But I feel O'Reilly simply slung out a new version of the book for PHP 5, without really updating the content to reflect PHP 5's enhancements. Especially the chapter covering OOP development with PHP 5. The content in that chapter is pure PHP 4. Not cool.
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
5.0 out of 5 stars Bought for my brother
I bought this as a gift for my brother and he liked it and that it the extent of my knowledge of it.
Published 19 months ago by M. George
3.0 out of 5 stars Lacks in structure, examples not great
I bought this book with the intent to have it as my coding companion. I am disappointed. Besides some typos and messed up code (for example the date formats on page 407 are all... Read more
Published on October 4, 2011 by Stanislav Gatev
1.0 out of 5 stars lousy
I noticed the name of the creator of php and i was expecting a superb book on the language sort of like the c programming language. Boy was i wrong. Read more
Published on August 16, 2011 by Joao Coelho
2.0 out of 5 stars Short lived Expectations
If you are like me you will be influenced to purchase this book mainly on the reputation of the publisher - O'Reilly. Read more
Published on October 20, 2010 by Cyrrilo
4.0 out of 5 stars Good Book
This book does exactly what I believe it is intended to do; Teach a new PHP programmer the basic syntax of the language and give insight into PHP's more language specific features. Read more
Published on July 21, 2010 by Andrei Mouravski
2.0 out of 5 stars Too Much PHP4 to be useful these days
The "Object Oriented" portion of the book is a terrible reference for PHP5 programming, as it uses examples based on PHP4, which won't work in PHP5. Read more
Published on July 8, 2010 by Ian Young
5.0 out of 5 stars Well Written Book
I really liked the way this book was written. This book is written with so many examples that it really got my fundamentals clear. Read more
Published on March 20, 2010 by SM
4.0 out of 5 stars Good for reference
As someone with a fair amount of programming experience already, I did not find this book too hard to read. It does, however, require some knowledge about programming in general. Read more
Published on July 12, 2009 by S. Noedel
3.0 out of 5 stars Good one
This book is more like a PHP dictionary. It's really not good for a new PHP programmer. But once you get familiar with this language and start your own project, you will find it's... Read more
Published on April 19, 2009 by Newbee1
5.0 out of 5 stars The book is good!
The book is good!

The book is good, we had some problems with delivery, but
the problems were solved!

bye thank you
Published on February 1, 2009 by piero censi
Search Customer Reviews
Search these reviews only


There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
First post:
Prompts for sign-in

Look for Similar Items by Category