<?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>Fri, 24 May 2013 12:01:14 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Gonzalo Ayuso's Blog: Keep our PostgreSQL databases synchronized with PHP. Database version control]]></title>
      <guid>http://www.phpdeveloper.org/news/15567</guid>
      <link>http://www.phpdeveloper.org/news/15567</link>
      <description><![CDATA[<p>
In <a href="http://gonzalo123.wordpress.com/2010/12/13/keep-our-postgresql-databases-syncronized-with-php-database-version-control/">this new post</a> to his blog today <i>Gonzalo Ayuso</i> looks at how he's set up a system that uses PHP to synchronize their PostgreSQL databases' schemas when things changed.
</p>
<blockquote>
We create source code at development server and push the changes to production. It's really easy to keep synchronized all our code. But with databases it's different. [...] It's a recurrent problem working with databases. We create database objects (tables, views, ..) in the development server and when our application is ready to go live we push the changes to production server. If we are smart developers we save all database scripts in a file and when we deploy them to production we execute the script.
</blockquote>
<p>
He mentions tools like <a href="http://dbdeploy.com/">dbdeploy</a> and <a href="http://phing.info/">phing</a> to help make these migrations a bit more automatic. He needed something a little different though - a command-line script that would, based on an ini file, sync two or more databases. He's created the <a href="http://code.google.com/p/pgdbsync/source/browse/pgdbsync">basic script</a> that includes the actions to show the differences between the databases, a summary of the differences and an execution method to bring them into sync. He gives a basic example of how it would handle the sync between his example production and development databases.
</p>]]></description>
      <pubDate>Mon, 13 Dec 2010 09:26:49 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Mark Karpeles' Blog: PHP DNS Daemon]]></title>
      <guid>http://www.phpdeveloper.org/news/11963</guid>
      <link>http://www.phpdeveloper.org/news/11963</link>
      <description><![CDATA[<p>
<i>Mark Karpeles</i> has created something that most people would think he's crazy for - a <a href="http://blog.magicaltux.net/2009/02/16/php-dns-daemon/">DNS daemon written in PHP</a>:
</p>
<blockquote>
If you want to tell me I'm crazy, you can post it in a comment here, it makes me happy. I had some reasons to dislike bind9 which finally made me write my own DNS daemon, and I'll explain that here. My need was to have a stable dynamic DNS server working in most environments, with an easy to configure master/slave relationship (with realtime synchronization), and a way to change records instantly from PHP...
</blockquote>
<p>
Rather than using the (slightly unstable) dlz technology to pull the information from a MySQL database, he opted to roll his own that includes support for:
</p>
<ul>
<li>RFC 1035 standards
<li>realtime data update
<li>slave/master relationship (with a keepalive connection)
</ul>
<p>
Want to try it out for yourself? <a href="mailto:mark@hell.ne.jp">Drop him a line</a> and ask about it!
</p>
<p>
He's also <a href="http://blog.magicaltux.net/2009/02/18/php-dns-daemon-performances/">run some statistics</a> on the performance of the daemon as compared to the standard BIND installation and <a href="http://blog.magicaltux.net/2009/02/19/your-own-php-dns-daemon/">come up with some instructions</a> on how you can install and configure your own instance.
</p>]]></description>
      <pubDate>Tue, 17 Feb 2009 12:06:24 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Greg Beaver's Blog: Synchronize live and development sites using the PEAR Installer]]></title>
      <guid>http://www.phpdeveloper.org/news/7261</guid>
      <link>http://www.phpdeveloper.org/news/7261</link>
      <description><![CDATA[<p>
<i>Greg Beaver</i>, PEAR guru extraordinaire, has <a href="http://greg.chiaraquartet.net/archives/166-Do-you-develop-a-website-It-is-infinitely-better-to-synchronize-live-and-development-sites-using-the-PEAR-Installer.html">added a new post</a> to his blog encouraging the use of the PEAR installer to help manage and deploy your website to a production server.
</p>
<blockquote>
One of the most common tasks that we experience as web developers is synchronizing a development web server with a live site. There are many solutions that have been tried before. [...] However, every single method (described above) has the potential for immediate and catastrophic failure, even with a backup.
</blockquote>
<p>
He <a href="http://greg.chiaraquartet.net/archives/166-Do-you-develop-a-website-It-is-infinitely-better-to-synchronize-live-and-development-sites-using-the-PEAR-Installer.html">suggests</a> the use of the PEAR installer functionality along with version control to easily deploy a site, allowing for things file dependencies and versioning. So, if files are handled through that package, how is the database managed? Through another PEAR-related feature - the post-install database initialization the Installer makes possible. Check out <a href="http://greg.chiaraquartet.net/archives/166-Do-you-develop-a-website-It-is-infinitely-better-to-synchronize-live-and-development-sites-using-the-PEAR-Installer.html">Greg's post</a> for the full details on how to get you and your site started.
</p>]]></description>
      <pubDate>Mon, 12 Feb 2007 12:48:00 -0600</pubDate>
    </item>
  </channel>
</rss>
