ftp
class ftp extends transfer
FTP transfer class
Properties
$connection | from transfer | ||
$host | from transfer | ||
$port | from transfer | ||
$username | from transfer | ||
$password | from transfer | ||
$timeout | from transfer | ||
$root_path | from transfer | ||
$tmp_path | from transfer | ||
$file_perms | from transfer | ||
$dir_perms | from transfer |
Methods
__construct($host, $username, $password, $root_path, $port = 21, $timeout = 10)
Standard parameters for FTP session
overwrite_file($source_file, $destination_file)
Moving file into location. If the destination file already exists it gets overwritten
from
transfer
static
data()
Requests data
Details
at line 267
__construct($host, $username, $password, $root_path, $port = 21, $timeout = 10)
Standard parameters for FTP session
in
transfer at line 55
write_file($destination_file = '', $contents = '')
Write file to location
in
transfer at line 91
overwrite_file($source_file, $destination_file)
Moving file into location. If the destination file already exists it gets overwritten
in
transfer at line 107
make_dir($dir)
Create directory structure
in
transfer at line 147
copy_file($from_loc, $to_loc)
Copy file from source location to destination location
in
transfer at line 167
delete_file($file)
Remove file
in
transfer at line 180
remove_dir($dir)
Remove directory
in
transfer at line 192
rename($old_handle, $new_handle)
Rename a file or folder
in
transfer at line 204
file_exists($directory, $filename)
Check if a specified file exist.
..
in
transfer at line 224
open_session()
Open session
in
transfer at line 232
close_session()
Close current session
in
transfer at line 240
static
methods()
Determine methods able to be used
at line 292
static
data()
Requests data