Learning PHP Data Objects: A Beginner's Guide to PHP Data Objects, Database Connection Abstraction Library for PHP 5 - Brossura

Poppel, Dennis

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

Sinossi

This book is for PHP developers who need to use PHP Data Objects (PDO) for data abstraction. Covering an overview of PDO, getting started, error handling, prepared statements, handling rowsets, advanced uses, and use in an MVC application, it first describes the topic, then gives step-by-step instructions for a particular example. A final appendix covers the object-oriented features of PHP 5. Readers should be familiar with PHP and aware of the basics of data abstraction. Lighter, faster, more powerful than existing data abstraction interfaces, PDO is an open-source query abstraction layer for accessing databases and manipulating returned records that is used with a database-specific PDO driver to access a particular database. It has the same role as classic database abstraction layers such as ODBC and JDBC. PDO ships with PHP 5.1, and is available as a PECL extension for PHP 5.0; PDO requires the new OO features in the core of PHP 5, and so will not run with earlier versions of PHP.

Le informazioni nella sezione "Riassunto" possono far riferimento a edizioni diverse di questo titolo.

L'autore

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.

Contenuti

Chapter 1 gives an overview of PDO along with a few features like single interface for creating a connection, connection strings, uniform statement methods, and use of exceptions and a singe system of error codes.

Chapter 2 helps to get you started with PDO, by creating sample database and then by creating a connection object. It also introduces PDOStatement classes.

Chapter 3 deals with various error handling processes and their uses.

Chapter 4 is about prepared statements. It deals with using prepared statements without binding values, binding a variable and a parameter to a prepared statement, and using LOBs as streams.

Chapter 5 talks about handling rowsets. It covers different ways to retrieve multiple rows. Scrollable cursors, and MySQL unbuffered queries and closing the cursor along with multiple queries, and rowsets are also explained.

Chapter 6 talks about advanced uses of PDO, and includes setting connection parameters, transactions, and methods of PDO and PDOStatement class.

Chapter 7 gives an example where creation of the method part of MVC application is discussed.

Appendix explains the object-oriented features like inheritance, encapsulation, polymorphism, and exception handling.

Le informazioni nella sezione "Su questo libro" possono far riferimento a edizioni diverse di questo titolo.