Location: PHPKode > projects > phpMyPrepaid > phpmyprepaid/www/include/divers/ssh.php
<?php
$connection = ssh2_connect("localhost", 22);
  // use any of the ssh2_auth_* methods
// ssh2_auth_password($connection,"username", "password");
// $sftp = ssh2_sftp($connection);
// $dir = "ssh2.sftp://$sftp/path/to/dir/";
// $dh = opendir($dir);
// while (($file = readdir($dh)) !== false) {
//   echo "$file is in hostname:/path/to/dir\ n";
//   }
//   closedir($dh);
 ?> 
Return current item: phpMyPrepaid