Here is a basic usage of GFtp extension. More samples could be found on GFtp extension website.
return array( // [...] 'components'=>array( // [...] 'ftp' => array( 'class' => 'ext.GFtp.GFtpApplicationComponent', 'connectionString' => 'ftp://user:pass@host:21', 'timeout' => 120, 'passive' => false ) ), // [...] );
Yii::import('ext.GFtp.GFtpComponent') $gftp = Yii::createComponent('ext.GFtp.GFtpComponent', array( 'connectionString' => 'ftp://user:pass@host:21', 'timeout' => 120, 'passive' => false) );
$files = $gftp->ls(); $gftp->chdir('images');
Total 2 comments
Web site is now online. You could find complete source code on GitHub : https://github.com/hguenot/GFtp/
how to download this widget
Leave a comment
Please login to leave your comment.