Skip to content

Instantly share code, notes, and snippets.

@Jerl92
Last active February 18, 2025 18:28
Show Gist options
  • Select an option

  • Save Jerl92/38f9f02886de612d30a1b7ca4a9ed4f8 to your computer and use it in GitHub Desktop.

Select an option

Save Jerl92/38f9f02886de612d30a1b7ca4a9ed4f8 to your computer and use it in GitHub Desktop.
Get list of running processes with PHP
<?php
$execstring='ps -f -u www-data 2>&1';
$output="";
exec($execstring, $output);
print_r($output);
?>
@Jerl92
Copy link
Author

Jerl92 commented Feb 18, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment