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

PHP view WINDOWS system process

WBOY
Release: 2016-08-08 09:25:16
Original
2740 people have browsed it

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.

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template