PHP 클래스 Ftp

Uso: $ftp = new Ftp('servidorFtp','usuario','password'); Subir archivo: $ok = $ftp->upload('carpetaDestino','archivoOrigen','archivoDestino'); Descargar archivo: $ok = $ftp->downLoad('archivoDelServidor','archivoLocal'); Cerrar sesion: $ftp->close(); Obtener eventuales errores: $array = $ftp->getErrores();
저자: Sergio Pérez ([email protected])
파일 보기 프로젝트 열기: dg/ftp-php 1 사용 예제들

공개 메소드들

메소드 설명
__call ( $name, $args ) : mixed Magic method (do not call directly).
__construct ( $url = NULL, $passiveMode = TRUE )
_errorHandler ( $code, $message ) Internal error handler. Do not call directly.
deleteRecursive ( $path ) : void Recursive deletes path.
fileExists ( $file ) : boolean Checks if file or directory exists.
isDir ( $dir ) : boolean Checks if directory exists.
mkDirRecursive ( $dir ) : void Recursive creates directories.
reconnect ( ) : void Reconnects to FTP server.

메소드 상세

__call() 공개 메소드

Magic method (do not call directly).
public __call ( $name, $args ) : mixed
리턴 mixed

__construct() 공개 메소드

public __construct ( $url = NULL, $passiveMode = TRUE )

_errorHandler() 공개 메소드

Internal error handler. Do not call directly.
public _errorHandler ( $code, $message )

deleteRecursive() 공개 메소드

Recursive deletes path.
public deleteRecursive ( $path ) : void
리턴 void

fileExists() 공개 메소드

Checks if file or directory exists.
public fileExists ( $file ) : boolean
리턴 boolean

isDir() 공개 메소드

Checks if directory exists.
public isDir ( $dir ) : boolean
리턴 boolean

mkDirRecursive() 공개 메소드

Recursive creates directories.
public mkDirRecursive ( $dir ) : void
리턴 void

reconnect() 공개 메소드

Reconnects to FTP server.
public reconnect ( ) : void
리턴 void