Login   Register  
PHP Classes
elePHPant
Icontem

Threading: Create parallel processes with the PHP CLI program

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2008-10-08 (6 years ago) RSS 2.0 feedStarStarStarStar 61%Total: 1,479 This week: 2All time: 2,458 This week: 919Up
Version License PHP version Categories  
threading-wo-pcntl 0.1.9GNU General Public Lice...5.1.2PHP 5, Unix, Language
Description Author  

This class can be used to create parallel processes with the PHP CLI program.

It can start parallel processes by running the PHP CLI program in the background for each new process.

The new process is set to run a given PHP script. Variable values are passed to the new process using temporary files.

Innovation Award  
PHP Programming Innovation award nominee
October 2008
Number 4


Prize: One book of choice by O'Reilly
In PHP you can use the pcntl extension to create parallel processes that run multiple PHP tasks simultaneously.

However, when available, the pcntl extension only runs under UNIX/Linux systems.

This class provides an alternative to run parallel processes in PHP without depending on the pcntl extension. It uses the PHP CLI program to start new parallel processes.

Manuel Lemos
Picture of Alex B. Snet
Name: Alex B. Snet is available for providing paid consulting. Contact Alex B. Snet .
Classes: 6 packages by
Country: Russian Federation Russian Federation
Age: 25
All time rank: 3317 in Russian Federation Russian Federation
Week rank: 236 Up7 in Russian Federation Russian Federation Equal
Innovation award
Innovation award
Nominee: 3x

Screenshots  
  • shot.png
  Files folder image Files  
File Role Description
Plain text file application.class.php Class This class
Plain text file example.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,479All time:2,458
 This week:2This week:919Up
 User Ratings  
 
 All time
Utility:91%StarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:-
Examples:66%StarStarStarStar
Tests:-
Videos:-
Overall:61%StarStarStarStar
Rank:768