Home  >  Article  >  Backend Development  >  PHP view WINDOWS system process

PHP view WINDOWS system process

WBOY
WBOYOriginal
2016-08-08 09:25:162677browse

php
/*
**View the WINDOWS system process list and find out whether the specified process exists
*/$tasklist = $_SERVER["WINDIR"]."/system32/tasklist.exe"; ​​​​​//Find the windows system The path of tasklist
//print($tasklist);
Run tasklist .exe, returns an array $arr//print_r($arr); //Print array//Use a loop to print the process listforeach($arr as$value

){
$list = explode("
",$value );​​​print( $list[0].
'

'); /* if('php.exe'==$list[0]){ echo $info[0].'
'; } */}?> ;
The above introduces PHP to view WINDOWS system processes, including aspects of the process. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn