PHP 클래스 Cml\Vendor\Ftp

파일 보기 프로젝트 열기: linhecheng/cmlphp

공개 메소드들

메소드 설명
changename ( string $oldname, string $newname ) : boolean FTP-更改ftp上的文件名称
close ( ) : boolean FTP-关闭链接
connect ( array $config ) : boolean FTP-ftp连接
delDir ( string $dir ) : boolean FTP-删除文件目录
delFile ( string $file ) : boolean FTP-删除文件
download ( string $local_file, string $ftp_file ) : boolean FTP-文件下载
fileSize ( string $file ) : boolean FTP-返回文件大小
ftpChmod ( string $file, integer $val = 511 ) : boolean FTP-改变文件权限值
makeDir ( string $path ) : boolean FTP-创建目录
mdtm ( string $file ) : boolean FTP-文件修改时间
nlist ( string $path = '/' ) : boolean FTP-FTP上的文件列表
upload ( string $local_file, string $ftp_file ) : boolean FTP-文件上传

비공개 메소드들

메소드 설명
checkpath ( $path ) : string FTP-检测path

메소드 상세

changename() 공개 메소드

FTP-更改ftp上的文件名称
public changename ( string $oldname, string $newname ) : boolean
$oldname string 旧文件
$newname string 新文件名称
리턴 boolean

close() 공개 메소드

FTP-关闭链接
public close ( ) : boolean
리턴 boolean

connect() 공개 메소드

FTP-ftp连接
public connect ( array $config ) : boolean
$config array 配置
리턴 boolean

delDir() 공개 메소드

FTP-删除文件目录
public delDir ( string $dir ) : boolean
$dir string 删除文件目录
리턴 boolean

delFile() 공개 메소드

FTP-删除文件
public delFile ( string $file ) : boolean
$file string 删除文件
리턴 boolean

download() 공개 메소드

FTP-文件下载
public download ( string $local_file, string $ftp_file ) : boolean
$local_file string 本地文件
$ftp_file string Ftp文件
리턴 boolean

fileSize() 공개 메소드

FTP-返回文件大小
public fileSize ( string $file ) : boolean
$file string 文件
리턴 boolean

ftpChmod() 공개 메소드

FTP-改变文件权限值
public ftpChmod ( string $file, integer $val = 511 ) : boolean
$file string 文件
$val integer
리턴 boolean

makeDir() 공개 메소드

FTP-创建目录
public makeDir ( string $path ) : boolean
$path string 路径地址
리턴 boolean

mdtm() 공개 메소드

FTP-文件修改时间
public mdtm ( string $file ) : boolean
$file string 文件
리턴 boolean

nlist() 공개 메소드

FTP-FTP上的文件列表
public nlist ( string $path = '/' ) : boolean
$path string 路径
리턴 boolean

upload() 공개 메소드

FTP-文件上传
public upload ( string $local_file, string $ftp_file ) : boolean
$local_file string 本地文件
$ftp_file string Ftp文件
리턴 boolean