I need a cross-platform way to execute PHP-scripts in multiple threads.
The only way I can think of is to exploit the webserver this way:
1. Store the thread's code in a separate script (e.g. thread.php)
2. Put ignore_user_abort(true) in this script
3. Make a HTTP request for thread.php to the webserver
4. Close the connection immediately
5. Continue in my initial script
Is this the most convenient way of solving the problem, or does anyone
have better solutions for this problem?
--
Tormod Fjeldskår
to****@fritidsproblemer.no
http://tormod.fritidsproblemer.no/