Learning PHP Data Objects and over one million other books are available for Amazon Kindle. Learn more


or
Sign in to turn on 1-Click ordering.
or
Amazon Prime Free Trial required. Sign up when you check out. Learn More
Kindle Edition
 
   
Sell Back Your Copy
For a $1.20 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Learning PHP Data Objects: A Beginner's Guide to PHP Data Objects, Database Connection Abstraction Library for PHP 5
 
 
Start reading Learning PHP Data Objects on your Kindle in under a minute.

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

Learning PHP Data Objects: A Beginner's Guide to PHP Data Objects, Database Connection Abstraction Library for PHP 5 [Paperback]

Dennis Popel (Author)
4.0 out of 5 stars  See all reviews (5 customer reviews)

List Price: $39.99
Price: $36.35 & this item ships for FREE with Super Saver Shipping. Details
You Save: $3.64 (9%)
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 Wednesday, May 30? Choose One-Day Shipping at checkout. Details

Formats

Amazon Price New from Used from
Kindle Edition $14.39  
Paperback $36.35  

Book Description

August 30, 2007
This book starts with an overview of PHP Data Objects (PDO), followed by getting started with PDO. Then it covers error handling, prepared statements, and handling rowsets, before covering advanced uses of PDO and an example of its use in an MVC application. Finally an appendix covers the new object-oriented features of PHP 5. This book will guide you through the data layer abstraction objects in PHP. PHP developers who need to use PDO for data abstraction.


Editorial Reviews

About the Author

Dennis Popel is an experienced PHP/PHP5 developer currently working for an Australian web development company, Motive Media (www.motivemedia.com.au). Serving Sun Microsystems Australia, Luna Park Sydney, Alsco Holdings and Pine Solutions, amongst others, Dennis leads company development of proprietary, web-based, software solutions. In his spare time, he runs the onPHP5.com blog and works on an online RSS aggregator NewzMix. Dennis Popel has been developing with PHP for more than 5 years and is experienced in such fields as object-oriented design and MVC. Previously he has worked at Rapid Intelligence, another Australian-based web company, publisher of such popular titles as NationMaster.com, FactBites.com and Qwika.com. In the past, Dennis was developing proprietary Java applications. This book is devoted to all the people that introduced and guided me in this wonderful world of information technology.

Product Details

  • Paperback: 188 pages
  • Publisher: Packt Publishing (August 30, 2007)
  • Language: English
  • ISBN-10: 1847192661
  • ISBN-13: 978-1847192660
  • Product Dimensions: 9.1 x 7.5 x 0.7 inches
  • Shipping Weight: 13.4 ounces (View shipping rates and policies)
  • Average Customer Review: 4.0 out of 5 stars  See all reviews (5 customer reviews)
  • Amazon Best Sellers Rank: #1,449,892 in Books (See Top 100 in Books)

Customer Reviews

Most Helpful Customer Reviews
3 of 4 people found the following review helpful
Format:Paperback
This is a good start for PDO. The examples and methodology used to present the concepts for using PDO were very useful. The book steps you from the basic use of PDO in chapter 2, through error handling and a good discussion of prepared statements, on to the more advanced topics of PDO settings and transactions.

I felt transactions needed better treatment, including the fact that MySQL only does transactions with certain table types such an InnoDB. His examples in this chapter do not show he is using a transaction friendly table type for MySQL (sqlite is always). Nor does he explain why you would want to even use PDO transactions when your table type is not transaction friendly - it is implied that there is no benefit.

He finishes the discussion in chapter 7 by modifying his examples to better fit the MVC paradigm. Personally, I feel he should have just started with it instead of trying to modify the code but that is my prejudice. If he had, he might have had more room for those things he left out <rolls eyes>.

If this book had not been published by Packt, I would have been very disappointed in the content vs price - $40 for 154 pages on the topic. Since Packt does contribute to open source projects based on the book's subject, I kind of forgive the cost.

However, the multiple times the author says "outside the scope of this book" kept reminding me that I paid $40 for such a short book. At least one time, I would have really liked to see more discussion regarding something he said was outside the scope, as if the book was already 900 pages long. I do give kudos to the author of at least having an appendix on OOP considering PDO is all about OOP - although I would have much more preferred to have also seen OOP techniques used throughout the code examples instead of a minor comment.

One other minor gripe I had, the use of short tags <?= ?> instead of <?php echo ?> throughout the code examples. It drove me crazy since I can't use them and really wish I could (XML compatibility issues). And it also kept reminding me that the use of <?= is to save space and good grief, not like this book needed to save space. Anyone trying to use this code to learn will have to modify it if their php settings have short_tags off.
Comment | 
Was this review helpful to you?
3 of 4 people found the following review helpful
Good Foundation Book September 25, 2007
Format:Paperback
I like the book's erudite methodology. The methodology of this book is based on the two tenets of sound education:

Informing
Demonstrating

In this books after the information I found lots of exercises, step by step, with plenty of pictures and screen shots that lead me through and demonstrated a process of task. These exercises are fantastic guides.
The author has used a case study approach, which is perfect for me because I learn by doing and practising.

The author has identified the stable and core concepts of PDO and presented them in a way that gives us the strongest possible starting point, no matter what our endeavour.

Be warned that you are assumed to have a basic understanding of Object Oriented Programming to make the most of this book.
Comment | 
Was this review helpful to you?
0 of 1 people found the following review helpful
Format:Paperback
This book isn't too bad for learning about PDO but the main disappointment I have with it is zero coverage of accessing stored procedures using PDO. I liked Chapter 7 - an advanced example in how to set up a MVC application. This is more real world but real world, or rather corporate applications would not put SQL code within program code. It would be placed in a stored procedure. That way, you only grant execute permissions to the procedures instead of Select, Insert, Update, Delete to the tables. Since it is the only book I know of on the subject, it is worth the money.
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
Search Customer Reviews
Only search this product's reviews

Inside This Book (learn more)
Browse Sample Pages:
Front Cover | Table of Contents | First Pages | Index | Back Cover | Surprise Me!
Search Inside This Book:

What Other Items Do Customers 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.
 
(5)
(2)

Your tags: Add your first tag
 

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

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


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   
Related forums



So You'd Like to...


Create a guide


Look for Similar Items by Category


Look for Similar Items by Subject