Install SSh2 extension for PHP, then you can use class below: <?php /** * Class to deal with sFTP connections * to use install http://php.oregonstate.edu/manual/en/ssh2.installation.php * */ class SFTPConnection { private $connection; private $sftp; public function __construct($host, $port=22) { if (!extension_loaded(‘ssh2′)) { throw new Exception(“Extension ssh2 has
Read more →
Recent comments