Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : win32ps Functions : win32_ps_list_procs

win32_ps_list_procs

List running processes (PECL win32ps:1.0.1)
array win32_ps_list_procs ( )


Code Examples / Notes » win32_ps_list_procs

cf

For those of you in the WAMP environment, here is a little function that you may find handy:
<?
function kill_proc($processName)
{
@$processList = win32_ps_list_procs();
foreach ($processList as $processArray)
{
$pid = $processArray['pid'];
if (basename($processArray['exe']) == $processName)
{
`taskkill /f /PID $pid 2>&1`;
}
}
}
?>
-CF


Change Language


Follow Navioo On Twitter
win32_ps_list_procs
win32_ps_stat_mem
win32_ps_stat_proc
eXTReMe Tracker