SSH via PHP?

A

Anonymous

Guest
OK, is it possible to use PHP to:

start a process, restart a process and end a process? I need some advice, I've been asked to write this script, but I'm a bit stuck when it comes to the process part... anyone help?

Andrew
 
have a look at:

http://ca2.php.net/manual/en/ref.posix.php
http://ca2.php.net/manual/en/ref.pcntl.php
 
no problem, hope they are just as fun a C processes and threads :wink:
 
Posix are very good for this but you can use system() as well. Eg: system("/etc/proccess start"); or system("ps -aux")
 
Back
Top