当我们运行几个ajax请求时,如何杀死windows中的php / apache子进程

I have a loop that sends lots of ajax to server. Each ajax downloads from ftp a file. I want to kill all php/ftp or apache children. I am killing the javascript through windows.stop(). The php scripts that are already running don't die (thus, they still download the files), just the others that were supposed to be called but are not called yet, that "die". I am running apache under windows.

In the end, i used:

$pid= getmypid(); exec("Taskkill /f /PID ".$pid);

It solves my problem!!! Thanks to all!