Hi to all,

I'm trying to create a script that will kill a server process via PID, but
as i run the script it doesnt kill the process . And  yet I want to add some
error mesage.

Here's my sample script:
 <?
function killprocess($id){
     system('kill'. escapeshellarg($id), $killret);
    if ($killret=="0"){
   //echo success message
   ?><SCRIPT>alert("Process Killed")</SCRIPT><?
  }elseif ($killret != "0"){
   //echo error message
    ?><SCRIPT>alert("Kill Error: <?  echo $this->kp;  ?>")</SCRIPT><?
  }
 }
?>
Is there something wrong with it? Please help and thanks in advance.



mike

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to