Source of: /manual/en/intro.pdo.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.pdo.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'intro.pdo.php',
1 => 'Introduction',
),
'up' =>
array (
0 => 'book.pdo.php',
1 => 'PHP Data Objects',
),
'prev' =>
array (
0 => 'book.pdo.php',
1 => 'PDO',
),
'next' =>
array (
0 => 'pdo.setup.php',
1 => 'Installing/Configuring',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div id="intro.pdo" class="preface">
<h1 class="title">Introduction</h1>
<p class="para">
The <i>PHP Data Objects</i> (<acronym>PDO</acronym>) extension defines a lightweight, consistent interface
for accessing databases in PHP. Each database driver that
implements the PDO interface can expose database-specific
features as regular extension functions. Note that you cannot
perform any database functions using the PDO extension by
itself; you must use a <a href="pdo.drivers.php" class="link">database-specific
PDO driver</a> to access a database server.
</p>
<p class="para">
PDO provides a <em class="emphasis">data-access</em> abstraction layer, which
means that, regardless of which database you're using, you use the same
functions to issue queries and fetch data. PDO does
<em class="emphasis">not</em> provide a <em class="emphasis">database</em>
abstraction; it doesn't rewrite SQL or emulate missing features. You
should use a full-blown abstraction layer if you need that facility.
</p>
<p class="para">
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.
</p>
</div><?php manual_footer(); ?>