Start reading Learning PHP Data Objects on your Kindle in under a minute. Don't have a Kindle? Get your Kindle here or start reading now with a free Kindle Reading App.

Deliver to your Kindle or other device

 
 
 

Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

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

Learning PHP Data Objects [Kindle Edition]

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

Print List Price: £24.99
Kindle Price: £17.99 includes VAT* & free wireless delivery via Amazon Whispernet
You Save: £7.00 (28%)
* Unlike print books, digital books are subject to VAT.

Free Kindle Reading App Anybody can read Kindle books—even without a Kindle device—with the FREE Kindle app for smartphones, tablets and computers.

To get the free app, enter your e-mail address or mobile phone number.

Formats

Amazon Price New from Used from
Kindle Edition £17.99  
Paperback £24.99  
Kindle Daily Deal
Kindle Daily Deal: Up to 70% off
Each day we unveil a new book deal at a specially discounted price--for that day only. Learn more about the Kindle Daily Deal or sign up for the Kindle Daily Deal Newsletter to receive free e-mail notifications about each day's deal.

Book Description

This book describes the topic first and then gives step-by-step instructions on how to go about a particular example. PHP developers who need to use PDO for data abstraction.


Product Description

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

  • Format: Kindle Edition
  • File Size: 1758 KB
  • Print Length: 190 pages
  • Page Numbers Source ISBN: 1847192661
  • Publisher: Packt Publishing (30 Aug. 2007)
  • Sold by: Amazon Media EU S.à r.l.
  • Language: English
  • ASIN: B0058SOD4S
  • Text-to-Speech: Enabled
  • X-Ray:
  • Word Wise: Not Enabled
  • Average Customer Review: 4.4 out of 5 stars  See all reviews (5 customer reviews)
  • Amazon Bestsellers Rank: #724,287 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?


More About the Author

Discover books, learn about writers, and more.

Customer Reviews

3 star
0
2 star
0
1 star
0
4.4 out of 5 stars
4.4 out of 5 stars
Most Helpful Customer Reviews
4 of 4 people found the following review helpful
4.0 out of 5 stars Well written, and focussed 7 Jun. 2008
Format:Paperback
Overview: Learning PHP Data Objects, by Dennis Popel, is an introduction to PDO, which walks through the building of a believable test example - a library manager for your home library. Each chapter introduces a new facet of PDO and shows how to rewrite the appropriate parts of the application to slot the new ideas in. Very clear and easy to read. Non-PDO subjects are appropriately kept to the appendices.

I really couldn't find very much about this book that I didn't like. Ignoring the appendices, the book is 154 pages purely devoted to teaching PDO through examples, including error handling, working with BLOBs, even the creation of the M in MVC (Models).

I mentioned MVC there. One of my gripes with most tutorials of MVC is that they introduce the concept simply, then provide pages and pages of code with the end product which is "hello world". Why I should go to all that trouble instead of simply writing to the screen usually escapes me. Dennis, however, concentrates solely on the Model and shows exactly why it's a great idea. I think some more separation of concerns would have been better (don't mix Author and Book SQL in the same object, for example), but the ideas were all good.

I think that if Dennis was going to show how the Model works, he should also have gone a little further and showed an example of an Active Record pattern as well. But I guess the point of showing MVC was more to show /an/ example of abstraction of the DB code, and that was sufficient.

The book covers a Library manager application all the way through from conception to implementation, demonstrating at all points that the code works with SQLite and MySQL (and by implication, all other DBMS's) with a change of only the connection string.
Read more ›
Comment | 
Was this review helpful to you?
2 of 2 people found the following review helpful
4.0 out of 5 stars Beginning PDO, for Intermediate PHP Programmers 20 Oct. 2007
By A. B.
Format:Paperback
This book works well for the intermediate PHP programmer who has researched application structure, and is beginning to focus on improving the database layer by standardising on PDO.

Commendably it keeps a tight focus, providing the minimum context in which to show PDO features: in this case a basic library program with simple PHP methods providing HTML. However in a later chapter it provides a useful example that shows the advantage of the model, updating previous code accordingly. It also saves time by assuming you have your environment set up correctly.

Design patterns vary, I believe the idea is that the reader should research MVC separation and other patterns, decide how to use them, then incorporate the PDO features from the book; it doesn't enforce a particular methodology you may not want to use. Conversely this is a disadvantage to less experienced PHP programmers, as they won't be served by the least-common-denominator code examples, which don't enforce separation of HTML and PHP.

I would recommend the book on the subjects of security and database correctness. Using prepared statements the book provides you with a robust way to avoid SQL injection. When something goes wrong, it explains how to handle the error correctly with exceptions, without exposing potentially harmful information. Even beginners should familiarise themselves with these new features. For mission-critical database operations, it elaborates on transactions, which weren't a feature of the PHP 4 extensions, and are either handled natively or emulated with PDO. Again it doesn't let focus drift into validation, which isn't provided by PDO, so only cursory hard-coded examples are given.

If you prefer the task-oriented approach to learning, you'll like this book.
Read more ›
Comment | 
Was this review helpful to you?
5.0 out of 5 stars Good book, easy to read 27 Jan. 2013
By Fran
Format:Kindle Edition|Verified Purchase
Im new in PDO, I felt curiosity for this. The book was enough to start to work with it. step by step I learned and in only one day I finished the whole book. Very handy
Comment | 
Was this review helpful to you?
5.0 out of 5 stars Five Stars 4 Jan. 2015
Format:Paperback|Verified Purchase
Really great for any PHP programmer at beginner and intermediate level.
Comment | 
Was this review helpful to you?
4.0 out of 5 stars Four Stars 20 Dec. 2014
Format:Paperback|Verified Purchase
Great start to PDO
Comment | 
Was this review helpful to you?
Would you like to see more reviews about this item?
Were these reviews helpful?   Let us know
Search Customer Reviews
Only search this product's reviews

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
 

Search Customer Discussions
Search all Amazon discussions
   


Look for similar items by category