PHP: ssh2_exec - Manual in Deutsh
PHP: ssh2_exec - Manual in French
PHP: ssh2_exec - Manual in Polish

You Are At PHP: ssh2_exec - Manual Area


recent searches:
include functions , variable functions , post functions...




If you are new to PHP or just need to refresh your skills, this is the place to start. This series of tutorials will give you the basic knowledge you will need to create a simple PHP website.

PHP is a reflective programming language originally designed for producing dynamic web pages.[1] PHP is used mainly in server-side scripting, but can be used from a command line interface or in standalone graphical applications. Textual User Interfaces can also be created using ncurses.

PHP Manual
PrevNext

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.

Example 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()

końcówki kolekcji, mapa Dąbki, bed&breakfast, wibrator, czerpnie, www.zero.pila.waw.pl, nagrzewnice sprzedaż
wesele biuro podróży Wrocław last minute email metrics email marketing nowoczesne mebloscianki

Another Useful functions:


function.ssh2-tunnel | function.ssh2-shell | function.ssh2-sftp | function.ssh2-sftp-unlink | function.ssh2-sftp-symlink | function.ssh2-sftp-stat | function.ssh2-sftp-rmdir | function.ssh2-sftp-rename | function.ssh2-sftp-realpath | function.ssh2-sftp-readlink | function.ssh2-sftp-mkdir | function.ssh2-sftp-lstat | function.ssh2-scp-send | function.ssh2-scp-recv | function.ssh2-publickey-remove | function.ssh2-publickey-list | function.ssh2-publickey-init | function.ssh2-publickey-add | function.ssh2-methods-negotiated | function.ssh2-fingerprint | function.ssh2-fetch-stream | function.ssh2-exec | function.ssh2-connect | function.ssh2-auth-pubkey-file | function.ssh2-auth-password | function.ssh2-auth-none | function.ssh2-auth-hostbased-file |


PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual, and the example archive sites and some of the other resources available in the links section.