Class: WindFtp
Source Location: /ftp/WindFtp.php
Class WindFtp
Class Overview
使用ftp函数实现ftp相关操作
使用方法和普通类库一样:
$ftp = new WindFtp(array('server' => '192.168.1.10', 'port' => '21', ‘user' => 'test', 'pwd' => '123456'));
print_r($ftp->fileList());
Located in /ftp/WindFtp.php [line 19]
AbstractWindFtp
|
--WindFtp
Author(s):
Information Tags:
|
Methods
|
Inherited Properties, Constants, and Methods
Methods
WindFtp __construct(
[array
$config = array()]
)
|
|
构造函数
通过传入config构造链接对象
Parameters:
API Tags:
void download(
$filename, [
$localname = ''], [
$mode = 'auto']
)
|
|
Parameters:
|
$filename: |
|
|
$localname: |
|
|
$mode: |
|
API Tags:
Redefinition of:
- AbstractWindFtp::download()
- 下载文件
void upload(
$sourceFile,
$desFile, [
$mode = 'A']
)
|
|
Parameters:
|
$sourceFile: |
|
|
$desFile: |
|
|
$mode: |
|
API Tags:
Redefinition of:
- AbstractWindFtp::upload()
- 上传文件
|
|