News Feed
Sections




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

DZone.com:
External processes and PHP
February 14, 2013 @ 11:29:04

In a new tutorial over on DZone.com Giorgio Sironi talks about handling external processes in PHP and how to work with streams.

I've come to known a bit about spawning and monitoring new processes from PHP code, while working at Onebip and trying to contribute to Paratest. Here's what you need to know if you think exec() or executing everything in a single .php script is always enough.

He starts with a look at the differences between using things like exec and streams for handling the spawning of other processes. He shows how you have more control when you go with the streams option and process handling with the "proc_*" methods. He also touches on some other things to think about like stream blocking, sleeping and dealing with multiple execution streams (and switching between them).

0 comments voice your opinion now!
external process tutorial stream handling


blog comments powered by Disqus

Similar Posts

Gilang Chandrasa's Blog: CodeIgniter Tutorial Compilation

Matthew Weier O'Phinney's Blog: ZF2 Forms in Beta5

PHPit.net: Image manipulation with PHP & the GD library (Part 1)

MaltBlue.com: \Zend\Db\Sql - Creating Joins and Unions with Ease

Zend Developer Zone: Manipulating Images with PHP and GraphicsMagick


Community Events





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


testing language interview install api developer code laravel opinion framework series podcast threedevsandamaybe refactor unittest introduction community symfony2 release list

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