downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

win32_ps_stat_mem> <win32ps Fonctions
[edit] Last updated: Fri, 25 May 2012

view this page in

win32_ps_list_procs

(PECL win32ps >= 1.0.1)

win32_ps_list_procsListe des processus qui fonctionnent

Description

array win32_ps_list_procs ( void )

Récupère des statistiques à propos de tous les processus qui fonctionnent.

Valeurs de retour

Retourne FALSE en cas d'erreur ou un tableau contenant des statistiques de processus, comme la fonction win32_ps_stat_proc() retourne pour tous les processus qui fonctionnent, en cas de succès.

Voir aussi



add a note add a note User Contributed Notes win32_ps_list_procs
cf at chronofish dot com 10-Sep-2007 11:27
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

 
show source | credits | stats | sitemap | contact | advertising | mirror sites