<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 20 Nov 2008 07:08:12 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Richard Heyes' Blog: PEAR::DB replacement class updated]]></title>
      <guid>http://www.phpdeveloper.org/news/8083</guid>
      <link>http://www.phpdeveloper.org/news/8083</link>
      <description><![CDATA[<p>
<i>Richard Heyes</i> has <a href="http://www.phpguru.org/#123">made some updates</a> to his <a href="http://www.phpguru.org/downloads/DB/">PEAR::DB replacement class</a> today, including:
</p>
<ul>
<li>Added numCols() function to the DB_result object
<li>Added seek() method to the DB_result object
<li>Enabled you to specify the fetchmode for getRow() and getAll()
<li>Made the test script easier to navigate
<li>Added reset() method to the DB_result object
</ul>
<p>
You can find out more about the project <a href="http://www.phpdeveloper.org/news/7989">here</a> or just <a href="http://www.phpguru.org/downloads/DB/">download this new version</a> and check out the <a href="http://www.phpguru.org/pear_db_replacement/">documentation</a> to get you started.
</p>]]></description>
      <pubDate>Wed, 20 Jun 2007 08:43:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Richard Heyes' Blog: PEAR::DB database class(es) replacement]]></title>
      <guid>http://www.phpdeveloper.org/news/7989</guid>
      <link>http://www.phpdeveloper.org/news/7989</link>
      <description><![CDATA[<p>
In <a href="http://www.phpguru.org/#121">a new post</a> <i>Richard Heyes</i> links to a replacement for the popular PEAR::DB package:
</p>
<blockquote>
PEAR::DB is all well and good if you want to connect to multiple databases (I assume, I've never actually used it with anything other than mysql) but it is somewhat hefty on the bad side of 60k. Not a good thing if you're not using some sort of accelerator and have a high traffic site. Here's a class which replicates the PEAR::DB API (the bits that I use anyhoo) and weighs in at a much nicer ~11k. Sweet.
</blockquote>
<p>
The class is <a href="http://www.phpguru.org/downloads/DB/">posted for download</a> here as a simple <a href="http://www.phpguru.org/downloads/DB/DB.phps">PHP source file</a> with functions and values named similar to those in the PEAR::DB package.
</p>]]></description>
      <pubDate>Wed, 06 Jun 2007 12:39:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Stoyan Stefanov's Blog: Performance tunning with PEAR::DB]]></title>
      <guid>http://www.phpdeveloper.org/news/7108</guid>
      <link>http://www.phpdeveloper.org/news/7108</link>
      <description><![CDATA[<p>
<i>Stoyan Stefanov</i> has <a href="http://www.phpied.com/performance-tunning-with-peardb/">posted some of his tips</a> to his blog today. Specifically, they deal with the PEAR::DB class, demonstrating some of the optimization of the package he's discovered in his coding experience.
</p>
<blockquote>
If you use <a href="http://pear.php.net/package/MDB2/">PEAR::MDB2</a>, you can set a custom debug handler and collect all the queries you execute for debugging and performance tunning purposes, <a href="http://www.phpied.com/performance-tuning-with-mdb2/">as shown before</a>. But what if you're using <a href="http://pear.php.net/package/DB/">PEAR::DB</a>? Well, since PEAR::DB doesn't allow you such a functionality out of the box, you can hack it a bit to get similar results.
</blockquote>
<p>
He <a href="http://www.phpied.com/performance-tunning-with-peardb/">creates a simple app</a> to help with the illustration - a number of select queries to grab zipcode information from the database. As it stands, the PEAR::DB package doesn't handle the debugging well, so he adds in a few more lines to buffer the connection and some reporting code to check the resulting output (as well as some of his sample reports).
</p>]]></description>
      <pubDate>Wed, 17 Jan 2007 09:35:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Jacques Marneweck's Blog: PEAR::DB alike wrapper for PEAR::MDB2]]></title>
      <guid>http://www.phpdeveloper.org/news/7045</guid>
      <link>http://www.phpdeveloper.org/news/7045</link>
      <description><![CDATA[<p>
Users of the PEAR::DB module now have another easy choice for upgrading their code to work with another database package - MDB2. According to <a href="http://www.powertrip.co.za/blog/archives/000558.html">this post</a> from <i>Jacques Marneweck</i>, there's <a href="http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Wrapper/peardb.php">a wrapper</a> <i>Lukas Smith</i> created to help ease the transition.
</p>
<p>
<a href="http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Wrapper/peardb.php">The wrapper</a> functionality has been included in the MDB2 package for a while now, and is designed to make things simple when switching from one package to another (as seamless as possible).
</p>
<p>
You can download the latest version of MDB2 from its <a href="http://pear.php.net/package/MDB2/redirected">page on the PEAR site</a>.
</p>]]></description>
      <pubDate>Mon, 08 Jan 2007 09:02:00 -0600</pubDate>
    </item>
  </channel>
</rss>
