<?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>Tue, 06 Jan 2009 06:12:01 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Sebastian Bergmann's Blog: Global Variables and PHPUnit]]></title>
      <guid>http://www.phpdeveloper.org/news/10424</guid>
      <link>http://www.phpdeveloper.org/news/10424</link>
      <description><![CDATA[<p>
<i>Sebastian Bergmann</i> has a <a href="http://sebastian-bergmann.de/archives/797-Global-Variables-and-PHPUnit.html">new post</a> today about a feature of the PHPUnit unit testing tool that has the possibility of breaking when objects are introduced - backing up the globals.
</p>
<blockquote>
It is hard to test code that uses singletons. The same is true for code that uses global variables. Typically, the code you want to test is coupled strongly with a global variable and you cannot control its creation. An additional problem is the fact that one test's change to a global variable might break another test.
</blockquote>
<p>
You can disable the backup option if you'd like by setting the $backupGlobals option in your test to false. This lets PHPUnit know that you want to leave the globals (and superglobals) alone during the run.
</p>]]></description>
      <pubDate>Tue, 17 Jun 2008 08:49:19 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Richard Heyes' Blog: mail() replacement]]></title>
      <guid>http://www.phpdeveloper.org/news/9203</guid>
      <link>http://www.phpdeveloper.org/news/9203</link>
      <description><![CDATA[<p>
<i>Richard Heyes</i> has <a href="http://www.phpguru.org/#163">posted about</a> a mail() replacement he's come up with that adds the additional functionality of backing up all of the data to a certain directory of your choosing.
</p>
<blockquote>
A simple drop in replacement function for PHPs mail() function called mailb() which backs up all the data to a specified directory. [...] I've also added a simple header file to Apache and the <a href="http://www.phpguru.org/downloads/">download</a> directory so it looks nicer.
</blockquote>
<p>
You can download a copy of his library <a href="http://www.phpguru.org/downloads/mailb/">here</a> as a .phps file (a quick and easy 40ish line script).
</p>]]></description>
      <pubDate>Mon, 10 Dec 2007 07:57:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[IBM developerWorks: Turn SQL into XML with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/8326</guid>
      <link>http://www.phpdeveloper.org/news/8326</link>
      <description><![CDATA[<p>
On the IBM developerWorks site today, there's a <a href="http://www.ibm.com/developerworks/xml/library/x-query2xml/index.html">new tutorial</a> by <i>Vikram Vaswani</i> walking through the use of the <a href="http://pear.php.net/package/XML_Query2XML/">XML_Query2XML PEAR package</a> to pull data from your SQL database and push it into an XML structure.
</p> 
<blockquote>
Ever wished for an easy way to transform SQL result sets into XML? It's a PEAR package named XML_Query2XML, and it provides a comprehensive framework to efficiently turn the results of a database query into a customizable XML document. This article introduces the package, and demonstrates useful real-world applications, including using it with XSL and XPath, combining it with data from external Web services, and creating database dump files.
</blockquote>
<p>
They <a href="http://www.ibm.com/developerworks/xml/library/x-query2xml/index.html">go through</a> the installation and the steps to create the XML:
</p>
<ul>
<li>Convert SQL to XML
<li>Transform XML output with XSL
<li>Customize XML output
<li>Work with SQL joins
<li>Filter SQL records with XPath
<li>Merge data from multiple sources
<li>Create database backups
</ul>
<p>
Check out <a href="http://www.ibm.com/developerworks/xml/library/x-query2xml/index.html">the full tutorial</a> for an excellent guide to using this powerful PEAR package.
</p>]]></description>
      <pubDate>Wed, 25 Jul 2007 09:21:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ryan Malesevich's Blog: WP Plugins: Database Backup]]></title>
      <guid>http://www.phpdeveloper.org/news/6323</guid>
      <link>http://www.phpdeveloper.org/news/6323</link>
      <description><![CDATA[<p>
On his blog today, <i>Ryan Malesevich</i> brings us yet another spotlight on a useful WordPress plugin. This time, it's a look at a tool that could save your entire site if used - the <a href="http://www.skippy.net/blog/category/wordpress/plugins/wp-db-backup/">WordPress Database Backup</a> plugin.
</p>
<blockquote>
Wordpress ships with a couple plugins installed like Akismet which is a great help. I'm not sure what the Hello Dolly one is and am afraid to try it because it sounds lame. But it also comes with a <a href="http://www.skippy.net/blog/category/wordpress/plugins/wp-db-backup/">Wordpress Database Backup</a>. I've been using this for a while and thought I would share it with you.
</blockquote>
<p>
He <a href="http://ryanslife.net/2006/09/20/wp-plugins-database-backup/">shows the installation</a> and use of the plugin, including screenshots of what the various bits of functionality look like. Making backups is always a good thing, and making it this easy is even better.
</p>]]></description>
      <pubDate>Thu, 21 Sep 2006 07:08:36 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Sephiroth.it: Backup your batabases w/o phpmyadmin]]></title>
      <guid>http://www.phpdeveloper.org/news/5126</guid>
      <link>http://www.phpdeveloper.org/news/5126</link>
      <description><![CDATA[As most people, especially those on a shared hosting environment, know, phpMyAdmin can be indespensible for managing your database setup. There are times, however, when you need to work with your databases without it - epecifically in doing a backup. If all you're left with is the command line and you need to make a backup quick, Sephiroth.it has <a href="http://dev.mysql.com/doc/refman/5.0/en/mysqldump.html">a quick tip</a> to help out.
<p>
<quote>
<i>
I often read threads about export/import data from MySQL and it's always mentioned phpmyadmin as the only way to do that (with PHP indeed).
<p>
But that's not true, and it's indeed the slower way to do that, expecially when importing large database files (because phpmyadmin has problems with large db)...
</i>
</quote>
<p>
He <a href="http://dev.mysql.com/doc/refman/5.0/en/mysqldump.html">gives an example</a> of the mysqldump functionality, complete with parameters for passing in things like a username and password. The reverse is also shown - reimporting the database data back into the system.]]></description>
      <pubDate>Fri, 07 Apr 2006 07:28:40 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Sematopia.com: How to - Backup MySQL database & email results using PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/4861</guid>
      <link>http://www.phpdeveloper.org/news/4861</link>
      <description><![CDATA[From Sematopia.com today, there's <a href="http://www.sematopia.com/?p=61">a quick example</a> of how to backup a MySQL database and email results with the help of a bit of PHP.
<p>
<quote>
<i>
There are a bunch of scripts on the Internet that overly complicate the issue of automatically backing up your database.  Here is a PHP script I wrote to backup a mysql database and email the results. Just set a cron job (/etc/crontab) to run this script with the following command: php dbBackUp.php
</i>
</quote>
<p>
You can either copy and paste the code from <a href="http://www.sematopia.com/?p=61">the post</a> or <a href="http://www.sematopia.com/upload/dbBackUp/dbBackUp.php.txt">download a copy</a>. It uses the PEAR Mail and Mail_Mime packages to do a lot of the work, so you'll need those installed before it will cooperate.]]></description>
      <pubDate>Fri, 17 Feb 2006 07:06:03 -0600</pubDate>
    </item>
  </channel>
</rss>
