yes i'm running this in a web server, is there any thing  i can for this. I
want to kill a server process in a web browser.


> I'm guessing you're attempting to run this from the web server (hence
> the <SCRIPT> tags). Probably the web server doesn't own the process your
> attempting to kill.
>
> Cheers,
> Rob.
>
> On Tue, 2003-10-07 at 23:09, Michael P. Carel wrote:
> > 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
> >
> >
> -- 
> .------------------------------------------------------------.
> | InterJinn Application Framework - http://www.interjinn.com |
> :------------------------------------------------------------:
> | An application and templating framework for PHP. Boasting  |
> | a powerful, scalable system for accessing system services  |
> | such as forms, properties, sessions, and caches. InterJinn |
> | also provides an extremely flexible architecture for       |
> | creating re-usable components quickly and easily.          |
> `------------------------------------------------------------'

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

Reply via email to