$connection
$connection : resource
FTP resource
FTP class
__construct(string $address, string $user, string $pass, boolean $ssl = false) : \Pop\Ftp\Ftp
Constructor
Instantiate the FTP object
string | $address | |
string | $user | |
string | $pass | |
boolean | $ssl |
chdir(string $dir) : \Pop\Ftp\Ftp
Change directories
string | $dir |
mkdir(string $dir) : \Pop\Ftp\Ftp
Make directory
string | $dir |
mkdirs(string $dirs) : \Pop\Ftp\Ftp
Make nested sub-directories
string | $dirs |
rmdir(string $dir) : \Pop\Ftp\Ftp
Remove directory
string | $dir |
get(string $local, string $remote, integer|string $mode = FTP_BINARY) : \Pop\Ftp\Ftp
Get file
string | $local | |
string | $remote | |
integer|string | $mode |
put(string $remote, string $local, integer|string $mode = FTP_BINARY) : \Pop\Ftp\Ftp
Put file
string | $remote | |
string | $local | |
integer|string | $mode |
rename(string $old, string $new) : \Pop\Ftp\Ftp
Rename file
string | $old | |
string | $new |
chmod(string $file, string $mode) : \Pop\Ftp\Ftp
Change permissions
string | $file | |
string | $mode |
delete(string $file) : \Pop\Ftp\Ftp
Delete file
string | $file |
pasv(boolean $flag = true) : \Pop\Ftp\Ftp
Switch the passive mode
boolean | $flag |