Join Amazon Prime and ship Two-Day for free and Overnight for $3.99. Already a member? Sign in.

 

or
Sign in to turn on 1-Click ordering.
 
 
More Buying Choices
65 used & new from $5.31

Have one to sell? Sell yours here
 
   
Programming PHP
 
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get yours here.
 
  
3.8 out of 5 stars See all reviews (58 customer reviews)

List Price: $39.99
Price: $26.39 & this item ships for FREE with Super Saver Shipping. Details
You Save: $13.60 (34%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Want it delivered Monday, July 20? Choose One-Day Shipping at checkout. Details
34 new from $21.38 31 used from $5.31
Also Available in: List Price: Our Price: Other Offers:
Paperback (Illustrated) 37 used & new from $2.80
School & Library Binding $57.40 $57.40 Order it used!
Like this book? Find similar titles from O'Reilly and Partners in our O'Reilly Bookstore.

Frequently Bought Together

Programming PHP + PHP Cookbook (Cookbooks (O'Reilly)) + Web Database Applications with PHP & MySQL, 2nd Edition
Price For All Three: $85.75

Show availability and shipping details


Customers Who Bought This Item Also Bought

Web Database Applications with PHP & MySQL, 2nd Edition

Web Database Applications with PHP & MySQL, 2nd Edition

by Hugh E. Williams
4.3 out of 5 stars (57)  $29.67
JavaScript: The Definitive Guide

JavaScript: The Definitive Guide

by David Flanagan
4.4 out of 5 stars (286)  $31.49
CSS: The Definitive Guide

CSS: The Definitive Guide

by Eric Meyer
4.4 out of 5 stars (33)  $29.69
Learning PHP 5

Learning PHP 5

by David Sklar
3.3 out of 5 stars (25)  $19.77
PHP and MySQL Web Development (4th Edition) (Developer's Library)

PHP and MySQL Web Development (4th Edition) (Developer's Library)

by Luke Welling
4.4 out of 5 stars (199)  $31.49
Explore similar items

Editorial Reviews

Amazon.com 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 the Paperback edition.

Product 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 quickreference 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

See all Editorial Reviews


Product Details

  • Paperback: 540 pages
  • Publisher: O'Reilly Media, Inc.; 2 edition (April 28, 2006)
  • Language: English
  • ISBN-10: 0596006810
  • ISBN-13: 978-0596006815
  • Product Dimensions: 9.2 x 7 x 1.5 inches
  • Shipping Weight: 2.2 pounds (View shipping rates and policies)
  • Average Customer Review: 3.8 out of 5 stars See all reviews (58 customer reviews)
  • Amazon.com Sales Rank: #10,231 in Books (See Bestsellers in Books)

    Popular in these categories: (What's this?)

    #7 in  Books > Computers & Internet > Web Development > Programming > PHP
    #8 in  Books > Computers & Internet > Operating Systems > Unix
    #9 in  Books > Computers & Internet > Operating Systems > Linux

Inside This Book (learn more)

What Do Customers Ultimately Buy After Viewing This Item?


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
Check the boxes next to the tags you consider relevant or enter your own tags in the field below.
(16)
(2)
(1)

Your tags: Add your first tag
 
Help others find this product — tag it for Amazon search
No one has tagged this product for Amazon search yet. Why not be the first to suggest a search for which it should appear?

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

 

Customer Reviews

58 Reviews
5 star:
 (23)
4 star:
 (14)
3 star:
 (7)
2 star:
 (13)
1 star:
 (1)
 
 
 
 
 
Average Customer Review
3.8 out of 5 stars (58 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
76 of 83 people found the following review helpful:
5.0 out of 5 stars Great PHP book, but for programmers, June 27, 2003
By Gerald Ford "pho_kin" (The Jack n' the Box at the corner) - See all my reviews
This review is from: Programming PHP (Paperback)
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 Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
28 of 29 people found the following review helpful:
5.0 out of 5 stars Outstanding tutorial on PHP along with all of its possibilities, January 20, 2007
By calvinnme "Texan refugee" (Fredericksburg, Va) - See all my reviews
(TOP 10 REVIEWER)      
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. You'll learn how PHP provides access to form parameters and uploaded files, how to send cookies and redirect the browser, and how to use PHP sessions.

Chapter 8, "Databases" - PHP has support for over 20 databases, including the most popular commercial and open source varieties. This chapter covers how to access databases from PHP. The focus is on the PEAR DB system, which lets you use the same functions to access any database, rather than on the myriad database-specific extensions. In this chapter, you'll learn how to fetch data from the database, how to store data in the database, and how to handle errors. The chapter finishes with a sample application that shows how to put various database techniques into action.

Chapter 9, Graphics - Many web images are dynamically created, such as graphs of stock performance. PHP supports the creation of such graphics with the GD and Imlib2 extensions. This chapter demonstrates how to generate images dynamically with PHP, using the GD extension.

Chapter 10, PDF - PHP has several libraries for generating PDF documents. This chapter shows how to use the popular fpdf library. The FPDF library is a set of PHP code you include in your scripts with the required function, so it doesn't require any server-side configuration or support, meaning you can use it even without support from your host.

Chapter 11, XML - This chapter shows how to use the XML parser bundled with PHP, as well as how to use the optional XSLT extension to transform XML. Generating XML is also briefly covered here.

Chapter 12, Security - PHP's convenience is a double-edged sword. The very features that let you quickly write programs in PHP can open doors for those who would break into your systems. It's important to understand that PHP itself is neither secure nor insecure. The security of your web applications is entirely determined by the code you write. This chapter gives tips on making that code secure.

Chapter 13, Application Techniques - This chapter demonstrates some techniques you may find useful in your PHP applications, such as code libraries, templating systems, efficient output handling, error handling, and performance tuning.

Chapter 14, Extending PHP - This chapter demonstrates writing C language extensions to PHP. Although most functionality can be written in the PHP language, sometimes you need the extra speed and control you get from the C API. C is the mechanism for creating the thin middle layer between PHP and any third-party C library. For example, to be able to talk to the MySQL database server, PHP needs to implement the MySQL socket protocol. It would be a lot of work to figure out this protocol and talk to MySQL directly using "fsockopen" and "fputs" from a PHP script. Instead, the same goal can be accomplished with a thin layer of functions written in C that translate MySQL's C API, implemented in the libmysqlclient library included in MySQL, into PHP language-level function calls. This thin layer of functions is known as a PHP extension.

Chapter 15, PHP on Windows - The most common reason to use PHP on Windows is to develop web applications on your Windows desktop. What can be confusing at first is the number of various configurations and choices available. There are many variants of the Windows operating system, and many web servers are available for those operating systems. PHP itself can run as either a DLL or a script. This chapter explains how to install, configure, and make the best use of PHP on Windows systems. One approach is taken and followed to its conclusion, although there are a number of different ways to arrive at the same destination. Also explained is how to take advantage of the features unique to the Windows platform, such as connecting to databases with ODBC and controlling Microsoft Office applications through COM.

As you can see this book really provides two functions. It is a very thorough tutorial and reference on the PHP programming language, and it is also a tutorial and showcase of all of the different uses PHP can have. Well commented code and instructions are provided throughout. I highly recommend it to anyone who needs to learn the PHP programming language as well as those that know the basics and want to put the language to work. Just make sure you know HTML and programming - preferably both C and PERL - first.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
37 of 43 people found the following review helpful:
4.0 out of 5 stars Rasmus *is* an author, June 5, 2002
By Nathan J Torkington (Fort Collins, CO USA) - See all my reviews
This review is from: Programming PHP (Paperback)
I'm the editor of Programming PHP. I can vouch for the fact that Rasmus was a fully-fledged author. Besides fact-checking everything that the other authors wrote, he contributed many chapters of his own. I don't know where the idea that Rasmus was "just supervising" or "has not done any major writing" came from (it's not a conclusion you could come to from actually *reading* the book) but it's absolutely wrong.

By all means be vague ("fairy land") and strange (LDAP and SNMP as "what makes PHP what it is today"?!) in reviews, but please don't be dishonest.

For my rating of this book, by the way, I came as close to the current average ranking as I could. I'm obviously not impartial (I think the book's a 5!) but I don't want my partiality to bias the reader ratings.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
Ad
 
Most Recent Customer Reviews

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. Read more
Published 4 days ago 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 2 months ago 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 5 months ago by piero censi

5.0 out of 5 stars PHP - the way to start
Not much to say other than that this book continues the O'Reilly's legacy of top books for self learning.
Published 5 months ago by Asaf Bar Lev

5.0 out of 5 stars Book Purchase Review
Purchase was initiated. Seller made contact to inform me of delay and offerred refund. I accepted the delay and appreciated the communication. Read more
Published 5 months ago by Rudester

2.0 out of 5 stars Too many errors, even in april 2006 edition
One shelf in my bookcase looks like a zoo with all those animals on the cover. I appreciate the books of O'reilly very much. Read more
Published 7 months ago by Mark S.

5.0 out of 5 stars Programming PHP Book

Said the book was in great condition, and it is! I'm ecstatic to have been able to purchase this book, at this price!
Published 10 months ago by Kala M. Mccloud

2.0 out of 5 stars Kind of a Rip-Off
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... Read more
Published 13 months ago by David W

3.0 out of 5 stars Descent PHP book. Not for Beginning PHP Developers
I bought this book after learning some Javascript and ColdFusion, thiking it would have some of the same concepts as most other scripting languages. Read more
Published 16 months ago by C. Walker

3.0 out of 5 stars Good, but not good enough.
O'Reily books have the same pattern. They take content that should have been one book for maybe $100, and divide it out into 3 or more books adding up to a heftier profit. Read more
Published 20 months ago by justin_v

Only search this product's reviews



Customer Discussions

 Beta (What's this?)
New! See all customer communities, and bookmark your communities to keep track of them.
This product's forum (0 discussions)
  Discussion Replies Latest Post
  No discussions yet

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


Active discussions in related forums
  Discussion Replies Latest Post
question about using forms and HTML frames 1 6 days ago
C# or Java? 32 11 days ago
   


Product Information from the Amapedia Community

Beta (What's this?)



Look for Similar Items by Category


Need a Wrench with Great Impact?

Shop for impact wrenches at Amazon.com
Tough jobs require the power of a wrench that won't back down. A variety of impact wrenches are available for any number of projects at prices you'll like.

Shop for impact wrenches

 

Best Books of 2008

Best of 2008
Find our top 100 editors' picks as well as customers' favorites in dozens of categories in our Best Books of 2008 Store.
 

Buy Three Books, Get a Fourth Free

4-for-3 Books
Order any four eligible books under $10 and get the lowest-price book free in our 4-for-3 Books Store. See more details.
 

Be Prepared for Every Emergency

Shop for Emergency Kits
To be prepared for an emergency, make sure you have emergency items on hand.

Shop all safety and security products

 
Ad

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Where's My Stuff?

Shipping & Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.

Look to the right column to find helpful suggestions for your shopping session.

Continue shopping: Top Sellers
Free
Free by Chris Anderson
Paranoia
Paranoia by Joseph Finder
My Soul to Lose
My Soul to Lose by Rachel Vincent
Glenn Beck's Common Sense

Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates