Skip to content
A simple but powerful PHP library for distributed computing.
Branch: master
Clone or download
Wade Lo Wade Lo
Wade Lo and Wade Lo edit README.md
Latest commit f9cf937 Mar 27, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo add README.md Mar 26, 2018
lib add README.md Mar 26, 2018
README.md edit README.md Mar 27, 2018

README.md

DistComp@home

A simple but powerful PHP library for distributed computing. You can change your foreach loop script to DistComp format and run it by distributed computing.

Using method:

Require("THE_SAVE_PATH/lib/distComp@home.lib.php");

$ReturnValues = DistCompHome($Array, '$key=>$value', $script, '$ReturnValues_inScript', $Vars_inscripts, $np);

A normal foreach loop needs a hash array as keys and values and it will repeat the codes in order. DistComp@home is able to divide the repeat works into several parts and run it simultaneously. In DistComp@home, we still need an array, keys, values, script. Be careful the variables in the script need to be defined as an array. In addition, you can use $np to divide your works into the number of pieces you want.

See complete expamples in /demo. You can compare the difference between demo_no_distComp@home.php and demo_distComp@home.php.

You can’t perform that action at this time.