<?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, 23 May 2013 12:37:32 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Automated backups to Google Drive with PHP API]]></title>
      <guid>http://www.phpdeveloper.org/news/19466</guid>
      <link>http://www.phpdeveloper.org/news/19466</link>
      <description><![CDATA[<p>
On his site <i>Lukasz Kujawa</i> has posted a new tutorial showing you how to <a href="http://systemsarchitect.net/automated-backups-to-google-drive-with-php-api/">perform automated backups to Google Drive</a> of files through their API (using <a href="https://github.com/lukaszkujawa/cp2google">his own library</a>).
</p>
<blockquote>
Where do you keep backups? I guess that depends on what do you backup. You might have a very clever answer for a business critical data but what about less important content? The best example would be a private blog. It will hurt if you lose your data but the odds are you're not willing to pay for any reliable storage. [...] There is one reliable storage, which is 100% free and almost everybody have access to it. Yes, I'm talking about Google Drive.
</blockquote>
<p>
He walks you through the process of setting up your Google Drive account API access and where to find the data you'll need to make the connection. He then links over to <a href="https://github.com/lukaszkujawa/cp2google">his project</a> that makes the backup a simple few lines of code (mostly configuration) of a backup path of your choice out to the remote Google Drive account.
</p>
Link: http://systemsarchitect.net/automated-backups-to-google-drive-with-php-api]]></description>
      <pubDate>Tue, 16 Apr 2013 10:57:01 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ilia Alshanetsky's Blog: Google Docs Backup Script]]></title>
      <guid>http://www.phpdeveloper.org/news/14684</guid>
      <link>http://www.phpdeveloper.org/news/14684</link>
      <description><![CDATA[<p>
<i>Ilia Alshanetsky</i> has created a simple script (that uses curl) to <a href="http://ilia.ws/archives/221-Google-Docs-Backup-Script.html">make a backup of your Google Docs</a> to keep you and your data a bit safer (since Google provides no backup capabilities).
</p>
<blockquote>
As part of the backup strategy we also wanted to capture incremental versions of the documents (on a daily basis) in the event we needed to go back to the prior versions. To this affect I whipped up a small (120 lines) PHP script that will retrieve all your Google documents and save them to a local directory, in the event the document was created/updated in the last 24 hours, thus ensuring snapshot support. 
</blockquote>
<p>
<a href="http://ilia.ws/patch/google.php.txt">His script</a> exports each of the documents contained in the account and puts them on the local file system prefixed with a year/month/day value to keep things unique. You'll need curl and SimpleXML enabled to be able to use the script, but it's a pretty simple thing to drop in and run on most PHP5 installations.
</p>
<p>
Here's the code in <a href="http://ilia.ws/patch/google.php.txt">raw text</a> and <a href="http://ilia.ws/patch/google.phps">syntax highlighted</a> versions.
</p>]]></description>
      <pubDate>Tue, 22 Jun 2010 11:50:50 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[SitePoint Server-Side Essentials Blog: Keep Your Blog Safe: Back Up Your WordPress Installation]]></title>
      <guid>http://www.phpdeveloper.org/news/14603</guid>
      <link>http://www.phpdeveloper.org/news/14603</link>
      <description><![CDATA[<p>
In a new post from SitePoint's Server-Side Essentials blog today, <i>Abbas Suterwala</i> talks about something that could save you and your WordPress website in a pinch - <a href="http://articles.sitepoint.com/article/backup-your-wordpress-site">a simple backup of everything</a>.
</p>
<blockquote>
No matter how much you trust your hosting company, disasters happen to everyone. You might also decide to change hosts, in which case you'll need to migrate your WordPress installation. In either case, you should have a full backup of your WordPress database and files from which you can easily restore, without losing any important data.
</blockquote>
<p>
He shows two different ways to get the job done - one, doing a manual backup, is a bit more complicated than the other method, using plugins to help out - but they both end up with the same result. For each method there's detailed instructions and screenshots (as well as links to the <a href="http://wordpress.org/extend/plugins/wp-db-backup/">two</a> <a href="http://wordpress.org/extend/plugins/wordpress-backup/">plugins</a> they chose to use).
</p>]]></description>
      <pubDate>Fri, 04 Jun 2010 09:25:04 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Swan's Blog: BACKUP and RESTORE A Database with the SQL Server Driver for PHP ]]></title>
      <guid>http://www.phpdeveloper.org/news/14322</guid>
      <link>http://www.phpdeveloper.org/news/14322</link>
      <description><![CDATA[<p>
In keeping with his SQL Server and PHP theme, <i>Brian Swan</i> has another new post talking about the combination, but this time he focuses on using the SQL Server driver for PHP to <a href="http://blogs.msdn.com/brian_swan/archive/2010/04/06/backup-and-restore-with-the-sql-server-driver-for-php.aspx">backup and restore a database</a> with the BACKUP and RESTORE SQL Server commands.
</p>
<blockquote>
The strategy you choose really depends on your application and your data. [...] Since I can't possibly cover everything between those extremes in one post, I'll aim for something in the middle. Like a blog, perhaps. In other words, I'll address the scenario in which I don't want to lose data, but I'm not willing to go to extremes to preserve it.
</blockquote>
<p>
The post is largely SQL Server related - mostly for the BACKUP and RESTORE - but it gives you a good idea of how to make a full backup, take a snapshot of your logs and restoring that information back up just in case.
</p>]]></description>
      <pubDate>Thu, 08 Apr 2010 12:48:08 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Webinar - How Zend Used Adobe Flex & PHP to Build a Software Flight Recorder]]></title>
      <guid>http://www.phpdeveloper.org/news/13959</guid>
      <link>http://www.phpdeveloper.org/news/13959</link>
      <description><![CDATA[<p>
On the Zend Developer Zone there's a new post <a href="http://devzone.zend.com/article/11761-Webinar---How-Zend-Used-Adobe-Flex-PHP-to-Build-a-Software-Flight-Recorder">talking about a webinar</a> Zend is hosting showing you how they created a "software flight recorder" with the combination of Adobe Flex and PHP.
</p>
<blockquote>
Tasked with building a software flight recorder for Zend Server 5.0 (the new release of its popular PHP web application server), Zend chose Adobe Flex. Join this webinar by Adobe and Zend to learn what made The PHP Company opt for Flex, see a live demo, and hear lessons learned from one PHP/Flex development project. You'll find out how Flex and PHP can be used together to enhance your application.
</blockquote>
<p>
You can catch it at one of two times (or both if you really want to, I suppose) - <a href="http://www.zend.com/en/company/news/event/webinar-how-zend-used-adobe-flex-php-to-build-a-software-flight-recorder">February 3rd</a> at 6am PST or <a href="http://www.zend.com/en/company/news/event/webinar-how-zend-used-adobe-flex-php-to-build-a-software-flight-recorder-us">February 4th</a> at 9am PST. 
</p>
<p>
They're free to attend, so stop by and see what the Zend Server software has to offer that could save you and your developers a lot of time and hassle in the future.
</p>]]></description>
      <pubDate>Wed, 03 Feb 2010 10:20:12 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Alex King's Blog: WordPress Security, Upgrades and Backups]]></title>
      <guid>http://www.phpdeveloper.org/news/13852</guid>
      <link>http://www.phpdeveloper.org/news/13852</link>
      <description><![CDATA[<p>
In one of <a href="http://alexking.org/blog/2010/01/08/wordpress-security-upgrades-backups">his recent posts</a> <i>Alex King</i> looks at three things that most plague WordPress users in their day to day running of their sites - the security of their installation, upgrading when a new version comes out and making good backups of your information just in case.
</p>
<blockquote>
I often get questions about WordPress security and how best to manage WordPress upgrades. These issues are closely related, and I've thought about them a good deal over the years (and I've been doing this long enough to have experimented with a variety of approaches). These are the approaches I am currently using and recommend for the technically savvy.
</blockquote>
<p>
For each of the three topics (security, upgrades and backups) he talks a bit about the current situation of it in the WordPress world and offers up some helpful hints to guide you along a good path as well as links to a few services and tools that can help save you when you need that all important file from a backup.
</p>]]></description>
      <pubDate>Fri, 15 Jan 2010 12:53:06 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Sebastian Bergmann's Blog: The Cost of Test Isolation - Follow-Up]]></title>
      <guid>http://www.phpdeveloper.org/news/11774</guid>
      <link>http://www.phpdeveloper.org/news/11774</link>
      <description><![CDATA[<p>
Adding on a bit more to a <a href="http://sebastian-bergmann.de/archives/830-The-Cost-of-Test-Isolation-and-other-PHPUnit-Features.html">previous post</a> of his look at test isolation (ex. global variables from one test do not effect any others') with <a href="http://sebastian-bergmann.de/archives/843-The-Cost-of-Test-Isolation-Follow-Up.html">an update</a> he's made to the PHPUnit code concerning the isolation.
</p>
<blockquote>
Since the previous posting, I have added a <a href="http://www.phpunit.de/manual/3.4/en/fixtures.html#fixtures.global-state">backup/restore mechanism for static attributes of classes</a> to <a href="http://www.phpunit.de/">PHPUnit</a>. This is yet another feature of PHPUnit that makes the testing of code that uses global state (which includes, but is not limited to, <a href="http://sebastian-bergmann.de/archives/797-Global-Variables-and-PHPUnit.html">global and superglobal variables</a> as well as static attributes of classes) easier.
</blockquote>
<p>
Two graphs illustrate the difference - <a href="http://www.flickr.com/photos/sebastian_bergmann/3206494878/">one showing a normal run</a> and <a href="http://www.flickr.com/photos/sebastian_bergmann/3206494876/">another</a> with this new feature in use and showing off the performance increase it can give.
</p>]]></description>
      <pubDate>Tue, 20 Jan 2009 11:11:44 -0600</pubDate>
    </item>
    <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>
  </channel>
</rss>
