Thread 1.0
Wrapper around the pcntl_fork() stuff, with a API set like Java language. Practical usage is done by extending this class, and re-defining the run() method. This way PHP developers can enclose logic into a class that extends PHP_Fork, then execute the start() method that forks a child process.
Communications with the forked process is ensured by using a Shared Memory Segment; by using a user-defined signal and this shared memory developers can access to child process methods that returns a serializable variable.
The shared variable space can be accessed with the tho methods:
- void setVariable($name, $value)
- mixed getVariable($name)
$name must be a valid PHP variable name;
$value must be a variable or a serializable object.
Resources (db connections, streams, etc.) cannot be serialized and so they're not correctly handled.
Only runs on *NIX systems, because Windows lacks of the needed pcntl ext.
More popular Utilities & Tools
- Console App 1.0 (4 years, 7 months 12 days ago)
- Social Security Number (SSN) Generator 1.2 (4 years, 8 months 3 days ago)
- Simple Object 1.0 (2 years, 10 months 2 days ago)
- Complete Horoscope 1.0 (6 years, 6 months 11 days ago)
- PropertyMax Pro FREE Real Estate Property Management v0.3 (7 years, 1 month 7 days ago)
Listing Files

action_dispatcher.php- 6.0 KB
- 09/23/2008 07:03:50

php_fork-api.html- 29.0 KB
- 09/23/2008 07:03:50

simple_controller.php- 8.9 KB
- 09/23/2008 07:03:50

Fork.php- 22.7 KB
- 09/23/2008 07:03:50

exec_methods.php- 6.5 KB
- 09/23/2008 07:03:50

passing_vars.php- 3.9 KB
- 09/23/2008 07:03:50

INSTALL- 1.1 KB
- 09/23/2008 07:03:50

basic.php- 2.3 KB
- 09/23/2008 07:03:50
- FREE MySQL Cloud Database Super Simple, Zero-Management MySQL Cloud DB. Use It FREE!
- Pinterest clone Start your own pin board social network today. Get Pintastic and start your own pinterest clone network.
- MYRE Real Estate Software Professional Real Estate solutions by MYREPHP PROGRAMMING!
