首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > PHP > 并行模式下运行的同步或异步脚本

并行模式下运行的同步或异步脚本

资 源 简 介

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

文 件 列 表

php-forker
test
LICENSE
Forker
README
NOTICE

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.202668s