Last active
February 18, 2025 18:28
-
-
Save Jerl92/38f9f02886de612d30a1b7ca4a9ed4f8 to your computer and use it in GitHub Desktop.
Get list of running processes with PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $execstring='ps -f -u www-data 2>&1'; | |
| $output=""; | |
| exec($execstring, $output); | |
| print_r($output); | |
| ?> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://stackoverflow.com/questions/49252047/get-list-of-running-processes-with-php