PHP 클래스 Pop\Ftp\Ftp

저자: Nick Sagona, III ([email protected])
파일 보기 프로젝트 열기: nicksagona/PopPHP 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$conn FTP resource

공개 메소드들

메소드 설명
__construct ( string $ftp, string $user, string $pass, boolean $ssl = false ) : Ftp Constructor
__destruct ( ) : void Close the FTP connection.
chdir ( string $dir ) : Ftp Change directories.
chmod ( string $file, string $mode ) : Ftp Change permissions.
delete ( string $file ) : Ftp Delete file.
get ( string $local, string $remote, integer | string $mode = FTP_BINARY ) : Ftp Get file.
mkdir ( string $dir ) : Ftp Make directory.
pasv ( boolean $flag = true ) : Ftp Switch the passive mode.
put ( string $remote, string $local, integer | string $mode = FTP_BINARY ) : Ftp Put file.
pwd ( ) : string Return current working directory.
rename ( string $old, string $new ) : Ftp Rename file.
rmdir ( string $dir ) : Ftp Remove directory.

메소드 상세

__construct() 공개 메소드

Instantiate the FTP object.
public __construct ( string $ftp, string $user, string $pass, boolean $ssl = false ) : Ftp
$ftp string
$user string
$pass string
$ssl boolean
리턴 Ftp

__destruct() 공개 메소드

Close the FTP connection.
public __destruct ( ) : void
리턴 void

chdir() 공개 메소드

Change directories.
public chdir ( string $dir ) : Ftp
$dir string
리턴 Ftp

chmod() 공개 메소드

Change permissions.
public chmod ( string $file, string $mode ) : Ftp
$file string
$mode string
리턴 Ftp

delete() 공개 메소드

Delete file.
public delete ( string $file ) : Ftp
$file string
리턴 Ftp

get() 공개 메소드

Get file.
public get ( string $local, string $remote, integer | string $mode = FTP_BINARY ) : Ftp
$local string
$remote string
$mode integer | string
리턴 Ftp

mkdir() 공개 메소드

Make directory.
public mkdir ( string $dir ) : Ftp
$dir string
리턴 Ftp

pasv() 공개 메소드

Switch the passive mode.
public pasv ( boolean $flag = true ) : Ftp
$flag boolean
리턴 Ftp

put() 공개 메소드

Put file.
public put ( string $remote, string $local, integer | string $mode = FTP_BINARY ) : Ftp
$remote string
$local string
$mode integer | string
리턴 Ftp

pwd() 공개 메소드

Return current working directory.
public pwd ( ) : string
리턴 string

rename() 공개 메소드

Rename file.
public rename ( string $old, string $new ) : Ftp
$old string
$new string
리턴 Ftp

rmdir() 공개 메소드

Remove directory.
public rmdir ( string $dir ) : Ftp
$dir string
리턴 Ftp

프로퍼티 상세

$conn 보호되어 있는 프로퍼티

FTP resource
protected $conn