|
XOOPS RMCommon Utilities
2.1.8.91RC
|
Public Member Functions | |
| __construct ($server, $port=21, $uname='', $pass='') | |
| chdir ($dir) | |
| chmod ($mode, $ruta) | |
| close () | |
| connect ($ssl=false, $timeout=90) | |
| delete ($ruta) | |
| get ($local, $remote, $mode=FTP_ASCII, $pos=0) | |
| isDir ($dir) | |
| mkdir ($dir) | |
| mtime ($ruta) | |
| nlist ($dir) | |
| pasv ($bool=true) | |
| put ($remote, $local, $mode=FTP_ASCII, $pos=0) | |
| pwd () | |
| rawlist ($dir, $mode=false) | |
| rename ($old, $new) | |
| rmdir ($dir) | |
| size ($file) | |
| systype () | |
Private Attributes | |
| $connection = '' | |
| $pass = '' | |
| $port = 21 | |
| $server = '' | |
| $uname = '' | |
Definition at line 11 of file ftpclient.php.
| RMFtpClient::__construct | ( | $server, | |
$port = 21, |
|||
$uname = '', |
|||
$pass = '' |
|||
| ) |
| RMFtpClient::chdir | ( | $dir | ) |
Cambia el directorio actual
| string | Directorio existente en el servidor return bool |
Definition at line 70 of file ftpclient.php.
References $dir.
Referenced by createDirs(), and isDir().

| RMFtpClient::chmod | ( | $mode, | |
| $ruta | |||
| ) |
Establece los permisos de un archivo en el servidor
| oct | Modo del permiso cono un numero octal(Ej. 0644) |
| string | Ruta del archivo |
Definition at line 89 of file ftpclient.php.
| RMFtpClient::close | ( | ) |
Cierra la conexión FTP
Definition at line 204 of file ftpclient.php.
| RMFtpClient::connect | ( | $ssl = false, |
|
$timeout = 90 |
|||
| ) |
| RMFtpClient::delete | ( | $ruta | ) |
Elimina un archivo del servidor
| string | Ruta existente del archivo |
Definition at line 79 of file ftpclient.php.
| RMFtpClient::get | ( | $local, | |
| $remote, | |||
$mode = FTP_ASCII, |
|||
$pos = 0 |
|||
| ) |
Obtiene un archivo desde el servidor FTP y lo almacena localmente
| string | Ruta a un archivo local |
| string | Ruta del archivo en el servidor (debe existir) |
| constant | Modo de tansferencia (FTP_ASCII o FTP_BINARY |
| int | Desde donde se empieza a descargar el archivo |
Definition at line 101 of file ftpclient.php.
| RMFtpClient::isDir | ( | $dir | ) |
Permite saber si un directorio existe
| string | Directorio a comprobar |
Definition at line 191 of file ftpclient.php.
References $dir, chdir(), and pwd().
Referenced by createDirs().


| RMFtpClient::mkdir | ( | $dir | ) |
Crea un directorio en el servidor
| string | Directorio |
Definition at line 119 of file ftpclient.php.
References $dir.
Referenced by createDirs().

| RMFtpClient::mtime | ( | $ruta | ) |
Devuelve la fecha de modificación de un archivo en el servidor
| string | Ruta válida del archivo |
Definition at line 110 of file ftpclient.php.
| RMFtpClient::nlist | ( | $dir | ) |
Lista de archivos
| string | Directorio |
Definition at line 128 of file ftpclient.php.
References $dir.
| RMFtpClient::pasv | ( | $bool = true | ) |
Activa el modo pasivo
| bool | Activar o desactivar |
Definition at line 53 of file ftpclient.php.
| RMFtpClient::put | ( | $remote, | |
| $local, | |||
$mode = FTP_ASCII, |
|||
$pos = 0 |
|||
| ) |
Carga un archivo al servidor FTP
| string | Archivo remoto |
| string | Archivo local |
| constant | Modo de transferencia (FTP_ASCII o FTP_BINARY) |
| int | Posición de inicio return bool |
Definition at line 140 of file ftpclient.php.
| RMFtpClient::pwd | ( | ) |
Directorio Actual
Definition at line 61 of file ftpclient.php.
Referenced by isDir().

| RMFtpClient::rawlist | ( | $dir, | |
$mode = false |
|||
| ) |
Obtiene la lista de directorios archivos
| string | Directorio |
| bool | Modo recursivo |
Definition at line 150 of file ftpclient.php.
References $dir.
| RMFtpClient::rename | ( | $old, | |
| $new | |||
| ) |
Renombra un archivo o un directorio
| string | Nombre actual |
| string | Nuevo nombre |
Definition at line 160 of file ftpclient.php.
| RMFtpClient::rmdir | ( | $dir | ) |
Elimina un directorio
| string | ruta al directorio |
Definition at line 169 of file ftpclient.php.
References $dir.
| RMFtpClient::size | ( | $file | ) |
Obtiene el tamaño de un archivo remoto
| string | Ruta del archivo |
Definition at line 178 of file ftpclient.php.
References $file.
| RMFtpClient::systype | ( | ) |
Definition at line 182 of file ftpclient.php.
|
private |
Definition at line 18 of file ftpclient.php.
|
private |
Definition at line 16 of file ftpclient.php.
Referenced by __construct().
|
private |
Definition at line 14 of file ftpclient.php.
Referenced by __construct().
|
private |
Definition at line 13 of file ftpclient.php.
Referenced by __construct().
|
private |
Definition at line 15 of file ftpclient.php.
Referenced by __construct().