Warning: Use of undefined constant DOCUMENT_ROOT - assumed 'DOCUMENT_ROOT' (this will throw an Error in a future version of PHP) in /home/vhosts/podolsk.xp3.biz/1.php on line 1

Warning: Use of undefined constant DOCUMENT_ROOT - assumed 'DOCUMENT_ROOT' (this will throw an Error in a future version of PHP) in /home/vhosts/podolsk.xp3.biz/0.php on line 1
PHP. Руководство по PHP. 2005 (создание и продвижение сайта)
создание и продвижение сайта (вбиваю в ТОП-10, как гвозди)Настройка и сопровождение платной рекламы яндекс.директ

PHP. Руководство по PHP. 2005

ssh2_execПред. След.

ssh2_exec

(PECL)ssh2_exec --  Execute a command on a remote server

Description

resource ssh2_exec (resource session, string command [, string pty [, array env [, int width [, int height [, int width_height_type]]]]])


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');

?>

See Also: ssh2_connect(), ssh2_shell(), and ssh2_tunnel()

Отвечу на любые вопросы. С уважением, Дмитрий Владимирович.

Ваше письмо×
Free Web Hosting