Basically I'd like to know of a very simple method for making a php script check if a specific program is running on my nix box.
Something like :
<?php
#some detection function here.
if($detectprogram == 1){
echo("It's running.");
}
else{
echo("It's not running.");
}
?>
Or even if I had to execute the program via a .sh (as I already do) and an -outputphp /path/to/htdocs/. Or similar. Thanks.