I had an idea of Adding Multi-threading functionality to php ( i called it PHPThreader ) in little words the idea was :-
1. make a Js class which Creates Ajax Objects in order to call PHP Scripts(Threads)
2. then make a PHP class Implements and Interfaces the Js Class
3. Implement the PHP Class with your script easily and LAUNCH threads very easy Just Like:-
$obj=new Thread($filename,$Inputs); in other words:-
$e=new Thread("Download.php","url="http://phpbuilder.com");
you will find the Classes & Documentation & Examples at :-
http://sourceforge.net/project/showfiles.php?group_id=203377&package_id=242365&release_id=532251
where
AjT.php : the Js Class which is implemented by the PHP class
Threader.php : PHP Class, which is a front to deal with the Js Class
Bag.php : is also dealing with Js Class to know the status of Thread( a finishing Alarm )
There are Two Examples:-
1. Downloading two files on parallel
2. PDM (Php Download Manager) a simple and primitive download manager in php
Please tell me what do u think of the Idea & Implementation .Thanks in advance and critique as u wish