资 源 简 介
While working on PHP, on many occassions I come up with requirement where I need to run some processes in parallel.
But there wasnt any easier way to do parallel processing in PHP.
In PHP, we could use fork using pcntl_fork() function but in unix variant platforms when PHP is not running as Apache module. Moreover this is not available on Windows platform.
There is a simpler way too, we can fake the forking by using the exec function and redirect STDOUT and STDERR to /dev/null and run the process in the background. But in this scenario, we cant catch the script output and dont have control on script flow.
Features:
* Synchronous/asynchronous script execution
Control parallel PHP script executions and get the outputs from the scripts
Argument passing to the PHP scripts
Get output in HTML/PHP object from
You can connect to me on http://www.akashsharma.me
Code assista