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

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -