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
40 used & new from $11.96

Have one to sell? Sell yours here
 
   
Object-Oriented PHP: Concepts, Techniques, and Code
 
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get yours here.
 
  

Object-Oriented PHP: Concepts, Techniques, and Code (Paperback)

by Peter Lavin (Author) "Creating a web page ain't what it used to be..." (more)
Key Phrases: Move First, Player Object
4.1 out of 5 stars See all reviews (17 customer reviews)

List Price: $29.95
Price: $21.86 & eligible for FREE Super Saver Shipping on orders over $25. Details
You Save: $8.09 (27%)
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Want it delivered Monday, July 13? Choose One-Day Shipping at checkout. Details
25 new from $15.67 15 used from $11.96

Frequently Bought Together

Customers buy this book with Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems by William Steinmetz

Object-Oriented PHP: Concepts, Techniques, and Code + Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems
Price For Both: $41.63

Customers Who Bought This Item Also Bought

PHP Objects, Patterns, and Practice, Second Edition

PHP Objects, Patterns, and Practice, Second Edition

by Matt Zandstra
4.5 out of 5 stars (8)  $29.69
AJAX and PHP: Building Responsive Web Applications

AJAX and PHP: Building Responsive Web Applications

by Cristian Darie
4.3 out of 5 stars (29)  $31.49
PHP Object-Oriented Solutions

PHP Object-Oriented Solutions

by David Powers
5.0 out of 5 stars (3)  $24.41
The PHP Anthology, Volume II: Applications

The PHP Anthology, Volume II: Applications

by Harry Fuecks
PHP 5 Recipes: A Problem-Solution Approach

PHP 5 Recipes: A Problem-Solution Approach

by Lee Babin
4.9 out of 5 stars (9)  $40.49
Explore similar items

Editorial Reviews

Review
"An interesting and challenging book . . . Lavin has focused on a highly useful area of knowledge for web developers and has done an excellent job. Recommended." -- Kickstart News, August 2006

"Lavin's approach makes this book very easy to read . . . a useful book to add to your library." -- Linux Security, June 16, 2006

Product Description
Object-Oriented PHP shows developers how to take advantage of the new object-oriented features of PHP. Working within the context of concrete examples, the book begins with code compatible with PHP 4 and 5, and then focuses on object-orientation in PHP 5. The author's practical approach uses numerous code examples, which will help developers get up to speed with object oriented PHP quickly, and show them how to apply what they learn to everyday situations. All code samples are available for download on the book's companion site.

See all Editorial Reviews

Product Details

  • Paperback: 216 pages
  • Publisher: No Starch Press (June 20, 2006)
  • Language: English
  • ISBN-10: 1593270771
  • ISBN-13: 978-1593270773
  • Product Dimensions: 9.2 x 6.9 x 0.7 inches
  • Shipping Weight: 14.4 ounces (View shipping rates and policies)
  • Average Customer Review: 4.1 out of 5 stars See all reviews (17 customer reviews)
  • Amazon.com Sales Rank: #328,362 in Books (See Bestsellers in Books)

Inside This Book (learn more)
First Sentence:
Creating a web page ain't what it used to be. Read the first page
Key Phrases - Capitalized Phrases (CAPs): (learn more)
Move First, Player Object
New!
Concordance | Text Stats
Browse Sample Pages:
Front Cover | Table of Contents | First Pages | Index | Back Cover | Surprise Me!
Search Inside This Book:

What Do Customers Ultimately Buy After Viewing This Item?

Object-Oriented PHP: Concepts, Techniques, and Code
36% buy the item featured on this page:
Object-Oriented PHP: Concepts, Techniques, and Code 4.1 out of 5 stars (17)
$21.86
Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems
22% buy
Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems 5.0 out of 5 stars (10)
$19.77
PHP Objects, Patterns, and Practice, Second Edition
19% buy
PHP Objects, Patterns, and Practice, Second Edition 4.5 out of 5 stars (8)
$29.69
PHP Object-Oriented Solutions
16% buy
PHP Object-Oriented Solutions 5.0 out of 5 stars (3)
$24.41

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.
(11)
(11)
(4)
(4)

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

17 Reviews
5 star:
 (8)
4 star:
 (3)
3 star:
 (6)
2 star:    (0)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.1 out of 5 stars (17 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
36 of 37 people found the following review helpful:
3.0 out of 5 stars A Knowledge-Transfer Brief for PHP Programmers, August 27, 2006
Object-Oriented PHP is really a technical brief that seems to fall short of its own ambitions. It covers PHP 5, most notably the radical switch from prior versions to a full OOP model. Lavin summarizes the reasons for the changes and reviews basic concepts of OOP. He then develops some classes for an application that draws images from a database and displays thumbnail images. In some places the PHP 4 equivalent code is provided for study. Notes on MySQL and PHP Data Objects (PDO) are also included.

It is a terse and sometimes bumpy ride. The book's conversational tone is appropriate for fellow geeks, but I found it more distracting than reassuring. There are some summary apologies, for example, that make the chapters seem like they were transcribed from tape. Rather than go back and match the introductory objectives to the text, a summary or two admits things didn't quite work out as planned. Ok, let's say there was no time to fix it. How does calling attention to it help?

Because the book is so short, the author glosses many concepts, frequently referring to web sites for technical details and tutorials. Once or twice he refers to a well-known author (e.g., Bruce Eckel) to support a complex point. Again while this is appropriate for a peer audience, it also needlessly puts the book out of reach for some readers.

It seems to me the book once had a too-ambitious outline. The back cover states you'll learn to "Incorporate AJAX into your OO PHP code." The coverage on this topic is trivial: an eight-line paragraph that names a website from which to retrieve example code, followed by indicators in subsequent to show where the AJAX reference is. The reader would be right to feel misled.

This book should be useful to the author's PHP peers, but those same readers should understand OOP well beforehand. I doubt a skeptical or demanding reader will like this book. Beginners will almost certainly get lost early and often.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
12 of 14 people found the following review helpful:
5.0 out of 5 stars What Object-Oriented PHP Programmers Are So Excited About, July 21, 2006
By Diane Cipollo (Editor at BellaOnline.com) - See all my reviews
Object-Oriented PHP by Peter Lavin is a good book for any traditional/procedural PHP programmer who would like to know what those object-oriented PHP programmers are so excited about. If you are considering adding object-oriented PHP to your toolbox and want a step-by-step, example based guide for the beginner, this is a good book to start with. This book is also for programmers who want to switch from PHP 4 to PHP 5.

Lavin starts with an overview of object-oriented PHP and discusses several of its advantages. He then discusses the basics of object-oriented programming such as classes and inheritance and the specifics for this type of programming in PHP. Next, he teaches you how to write your first class. One of the nice things about this book is that the author starts with this simple example and, as you progress through the book, shows how to build upon, extend and reuse that simple class to do more advanced programming.

The first step is to extend this class into a directory item class that will list all the files in a directory or list just certain files as needed. Next, you will write a thumbnail class that will create thumbnail images on-the-fly that are reduce in dimensions and quality thus reducing the download time. The third class you write is a page navigation class, similar to that used by Google, that will control the number of items listed on a page and also the number of page links in the navigation. Finally, he shows you how these three classes work together and with CSS.

Next, Lavin discusses the MySQL database class and how it works with the MySQL database. He also covers inheritance and how that can be applied to simplify error handling. He then moves on to abstract classes, magic methods and how dynamic websites can benefit from the SimpleXML extension to work with RSS feeds and the SOAP extension for a website search engine. We all hate to document our programs and Lavin shows you how to use the reflection class to self-document your code.

Peter Lavin has a web development firm and writes for several publications including PHP Hacks. There is a companion website that contains downloads of all the code and working examples.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
6 of 6 people found the following review helpful:
3.0 out of 5 stars Generally Disappointing, December 31, 2007
By John R. Cornell II (Jersey City, NJ USA) - See all my reviews
(REAL NAME)   
From the perspective of a an experienced procedural PHP programmer learning OO, having read both this book and "PHP 5 Objects, Patterns, and Practice" by Matt Zandstra, I would definately recommend the latter to this book.

Just because Zandstra's book doesn't have a cartoon on the front, doesn't make it less accessible. In fact I found it both more advanced and easier to understand at the same time. I imagine Lavin writing this book one chapter at a time, writing each successive chapter based on what he forgot in the previous. Zandstra's order of explanation on the other hand I found invaluable and thoughtful. When you're trying to make sense of a system by reading about it in a linear (book) explanation, the order in which the information is introduced and its context is very important.

Zandstra's book is also more thorough, and seems to approach implementation from an enterprise (read proper) perspective.

Lavin spends a lot of time on an example of using OO to build a system to display images in a directory. In hindsight, it turns out the design of his code is flawed in some places. Introduction material is no place to be teaching bad habits of any kind.

This book is $10 cheaper than Objects, Patterns, and Practice, but I think if you're serious about learning OO in PHP the extra $10 is worth it for a higher quality book.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


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

5.0 out of 5 stars Excellent Introduction to OOP in PHP
Object-Oriented PHP is an excellent tutorial of OOP. There are many books that cover OOP in general, but this one focuses entirely on PHP's implementation. Read more
Published 3 months ago by Andrew

3.0 out of 5 stars Thorough, informative, and confusing!
If your new to PHP, this isn't the book for you, learning procedurally to program PHP before you delve into OOP should definitely be a beginner's plan of attack, and the concepts... Read more
Published 5 months ago by Michael B. Goldberg

3.0 out of 5 stars Worthwhile for developers going to OOP
Unfortunately I am not a PHP procedural or OOP developer. My views, however, are from a longtime web developer. Read more
Published 6 months ago by Samuel B. Lopez

4.0 out of 5 stars Good information, awkward reading.
I am an experienced sequential PHP programmer and wanted to make the jump to Object Oriented PHP.

I have already learned OO concepts and programming through various... Read more
Published 14 months ago by Edward A. Webb

3.0 out of 5 stars Just OK
I'll agree with others and say that Mike Zandstra's book covers this topic better. The author goes through one example throughout the book (using classes to manipulate a file... Read more
Published 15 months ago by D. Kelley

5.0 out of 5 stars Finally I want to use OOP in PHP
Peter Lavin provides us with sound, easy to understand concepts, techniques, and examples in Object-Oriented PHP. Read more
Published 17 months ago by William E. Reveal

5.0 out of 5 stars The only book I used to learn OOP php
Thanks to this book now I understand the php code written on OOP style.
After reading this book I was able to develop a very large open source project written entirely in... Read more
Published 18 months ago by Dmitri Snytkine

5.0 out of 5 stars Great PHP Learning Tool
'Object-Oriented PHP: Concepts, Techniques, and Code' is a typical No Starch book and that is a very good thing. Read more
Published 18 months ago by Daniel McKinnon

5.0 out of 5 stars A Better Title Would Be Implementing OOP In PHP
As other reviewers have stated, this is defiantly not a book that will teach you object oriented programming, nor, have I found a book that teaches all the concepts of OOP and how... Read more
Published 20 months ago by J. Warren

3.0 out of 5 stars a little too basic..
I consider myself an advanced PHP user, I have read a few other PHP books, but I'm always looking to learn something new in the field. This book definitely is for beginners. Read more
Published 22 months ago by D. Billeci

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]

   


Product Information from the Amapedia Community

Beta (What's this?)



Look for Similar Items by Category


Cook with the Best Ingredients

Traditional Paella Kit
Fall into cooking or give the gift of great cooking with fresh and innovative ingredients and spices from Amazon Gourmet.

Shop more now

 

Big Savings in Books

Bargain Books
Find great titles at fantastic prices in our Bargain Books 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.
 

Best Books

Best of the Month
See our editors' picks and more of the best new books on our Best of the Month page.
 

 

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
Glenn Beck's Common Sense
Glenn Beck's Common Sense
Darkfever
Darkfever by Karen Marie Moning
The Lost Symbol
The Lost Symbol by Dan Brown
$16.17

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