PDO

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Berislav Lopac

    PDO

    Has anyone any experience with PDO (http://pecl.php.net/package/PDO)?
    According to some rumours, PHP 5.1 will hava a database abstraction layer,
    and this seems like a good candidate.

    I am especially interested in any comparisons with ADOdb, and particularly
    the extension-version of the latter.

    Berislav
  • Tony Marston

    #2
    Re: PDO

    PHP does not come with a built-in database abstraction layer - and why
    should it? You can always try PEAR DB, or there are plenty of other
    variations of a Data Access Object (DAO) out there. I know because I have
    written one.

    --
    Tony Marston

    This is Tony Marston's web site, containing personal information plus pages devoted to the Uniface 4GL development language, XML and XSL, PHP and MySQL, and a bit of COBOL




    "Berislav Lopac" <berislav.lopac @dimedia.hr> wrote in message
    news:1dxgy9r25e klw$.1ed8ulvnn8 yiy.dlg@40tude. net...[color=blue]
    > Has anyone any experience with PDO (http://pecl.php.net/package/PDO)?
    > According to some rumours, PHP 5.1 will hava a database abstraction layer,
    > and this seems like a good candidate.
    >
    > I am especially interested in any comparisons with ADOdb, and particularly
    > the extension-version of the latter.
    >
    > Berislav[/color]


    Comment

    • Berislav Lopac

      #3
      Re: PDO

      On Wed, 13 Oct 2004 18:53:42 +0100, Tony Marston wrote:
      [color=blue]
      > PHP does not come with a built-in database abstraction layer - and why
      > should it? You can always try PEAR DB, or there are plenty of other
      > variations of a Data Access Object (DAO) out there. I know because I have
      > written one.[/color]

      I know, Tony, I've checked your site. I might agree that PHP might not need
      a built-in abstraction layer for databases, but:

      a) There is rumour, coming from none else but Zeev from Zend (who said it
      in a brief interview with a local Croatian computer magazine), that PHP 5.1
      *will* have one.

      b) It it a fact that DALs made as extensions are much faster than pure PHP
      ones, as proven by the ADOdb extension.

      c) PDO exists (check the link in my post), and if they really plan to
      include a build-in DAL it certainly seems like a good candidate.
      Personally, I use ADOdb and would prefer if they would choose that, but as
      it doesn't seem likely I'd like to hear any opinions on PDO as I haven't
      yet used it.

      Berislav

      Comment

      Working...