Requirements ¶
- Tested on Yii 1.1.8 but it can work with previous version
Installation ¶
- Extract GFtp zip archive under protected/extensions/GFtp
Features ¶
- A Yii component : create an FTP connection everywhere in your Yii application
- A Yii application component : create a global FTP connection
- A widget : display and navigate through the FTP server
Usage ¶
Here is a basic usage of GFtp extension. More samples could be found on GFtp extension website.
- Create an FTP application component
return array(
// [...]
'components'=>array(
// [...]
'ftp' => array(
'class' => 'ext.GFtp.GFtpApplicationComponent',
'connectionString' => 'ftp://user:pass@host:21',
'timeout' => 120,
'passive' => false
)
),
// [...]
);
- Create a local FTP component
Yii::import('ext.GFtp.GFtpComponent')
$gftp = Yii::createComponent('ext.GFtp.GFtpComponent', array(
'connectionString' => 'ftp://user:pass@host:21',
'timeout' => 120,
'passive' => false)
);
- Use component
$files = $gftp->ls();
$gftp->chdir('images');
404
how to download this widget
It now online...
Web site is now online. You could find complete source code on GitHub : https://github.com/hguenot/GFtp/
TLS
Have any documentation, or plans for support of TLS connection?
Re: TLS
Hi,
Thank for your interest. Support for TLS is planned for the next version.
Full documentation could be found on project page.
Best regards.
Hervé
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.