<?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, 20 Jun 2013 03:34:47 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Padraic Brady's Blog: Mysteries Of Asynchronous Processing w/PHP - Pt 3: Spawned Child Processes]]></title>
      <guid>http://www.phpdeveloper.org/news/13319</guid>
      <link>http://www.phpdeveloper.org/news/13319</link>
      <description><![CDATA[<p>
<i>Padraic Brady</i> has posted <a href="http://blog.astrumfutura.com/archives/419-The-Mysteries-Of-Asynchronous-Processing-With-PHP-Part-3-Implementation-With-Spawned-Child-Processes-Using-Simple-Scripts-Or-Zend-Framework.html">part three</a> of his look at asynchronous processing in PHP applications today. The previous two parts <a href="http://www.phpdeveloper.org/news/13293">introduced</a> you to the topic and <a href="http://www.phpdeveloper.org/news/13306">got you ready</a> to work with child processes in a Zend Framework application. This latest part gets into the code showing how to fork the processes and handle communication between them.
</p>
<blockquote>
With the theory heavy portion of the series out of the way, we can begin to explore the various implementation possibilities. In this part, we will examine implementing Asynchronous Processing using a child process, i.e. a separate PHP process we create from our application during a request. We'll analyse this implementation option before introducing the source code so we may understand its advantages and disadvantages.
</blockquote>
<p>
He looks at both the advantages and disadvantages of processing with child processes and suggests a method to get a handle on the processes rather than just spawning new processes - forking. Some basic code examples are included, using the <a href="http://php.net/popen">popen</a> function to open the new child process and a Zend Framework example.
</p>]]></description>
      <pubDate>Thu, 01 Oct 2009 12:35:23 -0500</pubDate>
    </item>
  </channel>
</rss>
