Re: SSH and php
| From: | Ryan A | Date: | Mon, 17 Nov 2003 15:02:02 +0000 |
| Subject: | Re: SSH and php | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169943@lists.php.net to get a copy of this message | ||
Hey David,
% Is it possible to run a SSH command from php?
>Sure; it's possible to run any command from php. It may not work all
>that well, though :-)
heheh, good one. As helpful as usual :-D
% coming from a windows background I have no idea about shell/SSH and am
% pretty lost.
% Doing a quick search on google for "SSH commands" and "SSH help" returned
% quite a lot
% of crap that really didnt help me learn.
>Good enough. What do you want to do?
Basically stop/restart apache when i make changes to the httpd.conf file.
But then thinking of it I realize that if I stop apache from a script, once
apache is stopped
I cant run any php to restart it...right?
So I guess my question gets cut down to basically "any good place/program to
learn/use SSH?"
Cheers,
-Ryan
PHP Web hosting http://Bestwebhosters.com
----- Original Message -----
From: "David T-G" <davidtg-php@justpickone.org>
To: "PHP General list" <php-general@lists.php.net>
Cc: "Ryan A" <ryan@coinpass.com>
Sent: Monday, November 17, 2003 4:23 AM
Subject: Re: [PHP] SSH and php