Properties

$link_id

$link_id : 

Type

$is_login

$is_login : 

Type

$root_dir

$root_dir : 

Type

$tmp_dir

$tmp_dir : 

Type

$tmp_dir_plain

$tmp_dir_plain : 

Type

$error

$error : 

Type

$host

$host : 

Type

$port

$port : 

Type

$user

$user : 

Type

$pass

$pass : 

Type

$dir

$dir : 

Type

$rootdir

$rootdir : 

Type

$eqdkp_root

$eqdkp_root : 

Type

Methods

__construct()

__construct(  $user = "Anonymous",   $pass = "Email",   $host = "localhost",   $port = "21",   $dologin = true) 

Parameters

$user
$pass
$host
$port
$dologin

setTempDir()

setTempDir(  $dir,   $dir_plain) 

Parameters

$dir
$dir_plain

setRootDir()

setRootDir(  $dir,   $eqdkp_root) 

Parameters

$dir
$eqdkp_root

showerror()

showerror() 

systype()

systype() 

pwd()

pwd() 

cdup()

cdup() 

cdToHome()

cdToHome() 

cd()

cd(  $dir) 

Parameters

$dir

nlist()

nlist(  $dir = '') 

Parameters

$dir

rawlist()

rawlist(  $dir = "/") 

Parameters

$dir

mkdir()

mkdir(  $dir) 

Parameters

$dir

mkdir_r()

mkdir_r(  $path,   $mode = 509) 

Parameters

$path
$mode

file_size()

file_size(  $file) 

Parameters

$file

chmod()

chmod(  $file,   $mode = 438) 

Parameters

$file
$mode

delete()

delete(  $remote_file) 

Parameters

$remote_file

filedate()

filedate(  $remote_file) 

Parameters

$remote_file

rename()

rename(  $old_file,   $new_file,   $tmpmove = false) 

Parameters

$old_file
$new_file
$tmpmove

is_dir()

is_dir(  $file) 

Parameters

$file

ftp_rmdirr()

ftp_rmdirr(  $path) 

Parameters

$path

get()

get(  $local_file,   $remote_file,   $mode = FTP_BINARY,   $startpos) 

Parameters

$local_file
$remote_file
$mode
$startpos

moveuploadedfile()

moveuploadedfile(  $tmpfile,   $newfile,   $mode = FTP_BINARY) 

Parameters

$tmpfile
$newfile
$mode

put_string()

put_string(  $remote_file,   $data,   $mode = FTP_BINARY,   $startpos) 

Parameters

$remote_file
$data
$mode
$startpos

add_string()

add_string(  $remote_file,   $data,   $mode = FTP_BINARY,   $startpos) 

Parameters

$remote_file
$data
$mode
$startpos

ftp_copy()

ftp_copy(  $from,   $to) 

Parameters

$from
$to

close()

close() 

login()

login() 

put_upload()

put_upload(  $remote_file,   $local_file,   $mode = FTP_BINARY) 

Parameters

$remote_file
$local_file
$mode

generateRandomBytes()

generateRandomBytes(integer  $length = 16) : string

Generate random bytes.

Parameters

integer $length

Length of the random data to generate

Returns

string —

Random binary data

on_iis()

on_iis()