Login   Register  
PHP Classes
elePHPant
Icontem

File: example

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Lukas Mestan  >  Connect to SSH  >  example  >  Download  
File: example
Role: Example script
Content type: text/plain
Description: send shell command to remote ssh server
Class: Connect to SSH
Execute programs in remote computers using SSH
Author: By
Last change:
Date: 5 years ago
Size: 254 bytes
 

Contents

Class file image Download
<?php 

// EXAMPLE:
 
try{
   
$ssh=new SSH2_Connect;
 } catch (
Exception $e) echo $e->getMessage()

// some php scripts

// execute ssh command
 
try{
   
$ssh->SSH_Start_Script("ls -a"true);
 } catch (
Exception $e) echo $e->getMessage()

?>