killing server process online

From: Date: Wed, 08 Oct 2003 03:09:10 +0000
Subject: killing server process online
Groups: php.general 
Request: Send a blank email to php-general+get-165382@lists.php.net to get a copy of this message
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

« previous php.general (#165382) next »