<?php
class Controller_Index extends Controller {
public function action_index() {
$ftp = Ftp::factory( 'foobar' );
$ftp->connect();
Debug::dump( $ftp->list_files( 'public_html' ) );
$ftp->close();
}
}
<?php return array( 'foobar' => array( 'hostname' => 'sftp://xxx.xxx.xxx.xxx', 'username' => 'xxxxxx', 'password' => 'xxxxxx', 'port' => 21, 'passive' => true, 'ssl_mode' => false, 'debug' => false ) );
It looks like you're new here. If you want to get involved, click one of these buttons!