/** * Kill Application PID * * @param unknown_type $PID * @return boolen */ function kill($PID) { if (exec::is_running($PID)) { exec("kill -KILL {$PID}"); return true; } else { return false; } }
/** * Kill Application PID * * @param integer $pid process id from unix * @return boolean */ public static function kill($pid) { if (exec::is_running($pid)) { exec('kill -9 ' . $pid); return TRUE; //killed } else { return FALSE; //not processing } }