ftp OOP FTP library

  1. Documentation
  2. Change Log

Simple OOP FTP library

这个扩展是对常用ftp函数的面向对象封装。

Resources

Documentation

Requirements
  • Yii 1.0 or above
Installation
  • Extract ftp folder under protected/extensions
Usage

The following code is the component registration in the config file:

'components'=>array(
'ftp'=>array(
          'class'=>'application.extensions.ftp.EFtpComponent',
          'host'=>'127.0.0.1',
          'port'=>21,
          'username'=>'yourusername',
          'password'=>'yourpassword',
          'ssl'=>false,
          'timeout'=>90,
          'autoConnect'=>true,
    ),...
)

See the following code example:

$ftp = Yii::app()->ftp;
$ftp->put('remote.txt', 'D:\local.txt');
$ftp->rmdir('exampledir');
$ftp->chdir('aaa');
$ftp->currentDir();
$ftp->delete('remote.txt');

Change Log

February 25, 2009
  • Rename CFtpComponent to EFtpComponent
February 25, 2009
  • Initial release.
10 0
12 followers
2 503 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Networking
Tags: ftp
Developed by: miles
Created on: Feb 25, 2009
Last updated: 8 years ago

Downloads

show all

Related Extensions