|
Последние активные темы форума |
|
ssh2_exec
(no version information, might be only in CVS) ssh2_exec --
Execute a command on a remote server
Descriptionstream ssh2_exec ( resource session, string command [, array env] ) Execute a command at the remote end and allocate a channel for it.
Returns a stream on success or FALSE on failure.
Пример 1. Executing a command
<?php
$connection
=
ssh2_connect
(
'shell.example.com'
,
22
);
ssh2_auth_password
(
$connection
,
'username'
,
'password'
);
$stream
=
ssh2_exec
(
$connection
,
'/usr/local/bin/php -i'
);
?>
|
|
Смотрите также:
ssh2_connect(),
ssh2_shell(), and
ssh2_tunnel()
|