<?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, 24 May 2012 04:30:35 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Evert Pot's Blog: Forking and MySQL connections]]></title>
      <guid>http://www.phpdeveloper.org/news/11497</guid>
      <link>http://www.phpdeveloper.org/news/11497</link>
      <description><![CDATA[<p>
<i>Evert Pot</i> has a <a href="http://www.rooftopsolutions.nl/article/213">quick post</a> showing how you can make your code fork MySQL connections for better performance.
</p>
<blockquote>
For some of our long-running processes we use PHP. It makes total sense from our perspective, because we can re-use all our existing business logic from our main PHP web application. To make things more efficient, I recently started some work on using forks and have a couple of worker processes around.
</blockquote>
<p>
His sample script makes use of the <a href="http://php.net/pcntl_fork">pcntl_fork</a> and <a href="http://php.net/pcntl_wait">pcntl_wait</a> functions in PHP to spawn off processes that will be closed off when no longer needed.
</p>]]></description>
      <pubDate>Wed, 03 Dec 2008 12:07:32 -0600</pubDate>
    </item>
  </channel>
</rss>

