Ajax call for PHP MultiThreading -
one of javascript ajax call following php file -
-----------------------myajax.php----------------------------- function mymethod($username) { echo $username; } class asyncoperation extends thread { public function __construct($username) { $this->username = $username; } public function run() { mymethod($this->username); } } $stack = array(); $stack[0] = new asyncoperation("ifti"); $stack[1] = new asyncoperation("jami"); foreach ( $stack $t ) { $t->start(); }
i'm not getting response string ajax response. may due the thread operation. there way overcome issue ?
Comments
Post a Comment