downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

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&#039;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&#039;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(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites