News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Padraic Brady's Blog:
Mysteries Of Asynchronous Processing w/PHP - Pt 3 Spawned Child Processes
October 01, 2009 @ 12:35:23

Padraic Brady has posted part three of his look at asynchronous processing in PHP applications today. The previous two parts introduced you to the topic and got you ready 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.

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.

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 popen function to open the new child process and a Zend Framework example.

0 comments voice your opinion now!
spawn child process asynchronous tutorial


blog comments powered by Disqus

Similar Posts

Code2Learn.com: Using HighCharts with php , MySQL and CodeIgniter

PHPWomen.org: Add values to a symfony form in between save() and serialization to the database

Zend Developer Zone: Object-relational mapping with Doctrine, Flash Builder, and PHP

ThinkPHP Blog: Methods to Reduce the Load of Your Webserver by Caching Content

PHP-GTK Community Site: GtkToolbar, GtkMenubar, and PEAR XML-RPC for geo-nick


Community Events











Don't see your event here?
Let us know!


symfony2 component facebook hack language composer series package unittest install release introduction podcast performance security application framework opinion database hhvm

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework