Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

SSH via PHP?

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

SSH via PHP?

Postby bezmond » Sun Jun 29, 2003 6:29 am

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
User avatar
bezmond
Moderator
Moderator
 
Posts: 312
Joined: Sat Apr 05, 2003 4:33 am
Location: Mansfield, UK

Postby liquedus » Sun Jun 29, 2003 6:34 am

liquedus
php-forum Active User
php-forum Active User
 
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada

Postby bezmond » Sun Jun 29, 2003 6:44 am

wooooooooooooohooooooooooooooo! Thanks :D
User avatar
bezmond
Moderator
Moderator
 
Posts: 312
Joined: Sat Apr 05, 2003 4:33 am
Location: Mansfield, UK

Postby liquedus » Sun Jun 29, 2003 7:41 am

no problem, hope they are just as fun a C processes and threads :wink:
liquedus
php-forum Active User
php-forum Active User
 
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada

Postby mike » Fri Jul 04, 2003 6:40 pm

Posix are very good for this but you can use system() as well. Eg: system("/etc/proccess start"); or system("ps -aux")
User avatar
mike
New php-forum User
New php-forum User
 
Posts: 73
Joined: Sun May 04, 2003 4:26 am
Location: Athens


Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.