<?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 16:19:55 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Sameer Borate's Blog: Splitting large MySQL dump files]]></title>
      <guid>http://www.phpdeveloper.org/news/16937</guid>
      <link>http://www.phpdeveloper.org/news/16937</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Sameer Borate</i> includes a handy bit of code you can use to <a href="http://www.codediesel.com/php/splitting-large-mysql-dump-files/">split up a large MySQL dump file</a> into smaller, easier to digest chunks.
</p>
<blockquote>
One of the frustrating things with working with MySQL is of importing large sql dump files. Either you get a 'max execution time exceeded' error from PHP or a 'Max_allowed_packet_size' from MySQL. In a recent task I needed to import a table of around a million records on a remote host, which quickly became an exercise in frustration due to various limitations on the server. SSH was of no help as changing the configuration files was restricted to the root user. My last resort was to split the huge 'INSERT' statements into smaller size files. 
</blockquote>
<p>
His script needs a little extra time to run (he sets max execute to 600 seconds) and takes the SQL file in line by line, splitting them back out to over files based on a "count" value - "dump-split-*". Depending on the size of your files, using something like this might not be an option. You might need something more like the <a href="http://kb.iu.edu/data/afar.html">command line "split" feature</a> to keep it outside of PHP's memory management all together.
</p>]]></description>
      <pubDate>Mon, 03 Oct 2011 08:44:43 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Gaylord Aulke's Blog: Dumping MemcacheD Content (Keys) with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10946</guid>
      <link>http://www.phpdeveloper.org/news/10946</link>
      <description><![CDATA[<p>
In a <a href="http://100days.de/serendipity/archives/55-Dumping-MemcacheD-Content-Keys-with-PHP.html">recent blog post</a> <i>Gaylord Aulke</i> illustrated a method for dumping the (key) content from a memcached cache in a friendly, formatted way.
</p>
<blockquote>
When i did some optimization of a cluster based webapp lately, I was wondering how Memcache was speading my cache entries over the cluster. So i did some research for monitoring tools. [...] Inspired by [memcache.php], i wrote a small script that fetches all data from a memcache cluster, gets all keys out of it and then sorts and displays them in a list. Yes it it ugly and yes: the memcacheD is not answering other requests while doing a cachedump.
</blockquote>
<p>
He includes the <a href="http://100days.de/serendipity/archives/55-Dumping-MemcacheD-Content-Keys-with-PHP.html">22 line script</a> in the post to spit back the data in a simple array. From there it can be styled whoever you'd like.
</p>]]></description>
      <pubDate>Tue, 02 Sep 2008 12:58:59 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Internet Super Hero Blog: mysqli_debug() - 'm'/dump memory information]]></title>
      <guid>http://www.phpdeveloper.org/news/8582</guid>
      <link>http://www.phpdeveloper.org/news/8582</link>
      <description><![CDATA[<p>
A <a href="http://blog.ulf-wendel.de/?p=162">new note</a> on the Internet Super Hero blog talks about a new improvement to the mysqlnd driver support a memory dump option for mysqli_debug.
</p>
<blockquote>
Andrey has implemented a little mysqlnd only addition to mysqli_debug(): 'm' - dump memory information. It works like the other options described in <a href="http://blog.ulf-wendel.de/?p=159">PHP: Debugging ext/mysqli and mysqlnd</a> with the only difference that it is only available with mysqlnd.
</blockquote>
<p>
A comparison of the "before option 'm'" and "after option 'm'" <a href="http://blog.ulf-wendel.de/?p=162">is also included</a>.
</p>]]></description>
      <pubDate>Tue, 04 Sep 2007 09:03:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[IBM developerWorks: Batch processing in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/6844</guid>
      <link>http://www.phpdeveloper.org/news/6844</link>
      <description><![CDATA[<p>
Both <a href="http://devzone.zend.com/node/view/id/1334">this post</a> on the Zend Developer Zone</a> and <a href="http://www.php-mag.net/magphpde/magphpde_news/psecom,id,26637,nodeid,5.html">tis post</a> on the International PHP Magazine's website point to a new article over on the IBM developerWorks website by <i>Jack Herrington</i>, <a href="http://www-128.ibm.com/developerworks/opensource/library/os-php-batch/">Batch processing with PHP</a>.
</p>
<blockquote>
What do you do when you have a feature in your Web application that takes longer than a second or two to finish? You need some type of offline processing solution. Check out several methods for offline servicing of long-running jobs in your PHP application.
</blockquote>
<p>
He <a href="http://www-128.ibm.com/developerworks/opensource/library/os-php-batch/">talks about cron</a> and its role in offline processing (including a basic primer on its format) before getting into the example itself. He looks at three examples:
<ul>
<li>building an email queue
<li>building a generic queue system
<li>dumping out the database 
</ul>
Each example comes complete with code and descriptions to help you work them up on you very own system.
</p>]]></description>
      <pubDate>Thu, 07 Dec 2006 09:06:00 -0600</pubDate>
    </item>
  </channel>
</rss>
