Class ftp_fsock

Description

FTP fsock transfer class

  • author: wGEric

Located in /includes/functions_transfer.php (line 482)

transfer
   |
   --ftp_fsock
Variable Summary
Method Summary
 ftp_fsock ftp_fsock ( $host,  $username,  $password,  $root_path, [ $port = 21], [ $timeout = 10])
 void data ()
 void _chdir ([ $dir = ''])
 void _check_command ([ $return = false])
 void _chmod ( $file,  $perms)
 void _close ()
 void _cwd ()
 void _delete ( $file)
 void _init ()
 void _ls ([ $dir = './'])
 void _mkdir ( $dir)
 void _put ( $from_file,  $to_file)
 void _rename ( $old_handle,  $new_handle)
 void _rmdir ( $dir)
 void _send_command ( $command, [ $args = ''], [ $check = true])
Variables
Methods
Constructor ftp_fsock (line 489)

Standard parameters for FTP session

ftp_fsock ftp_fsock ( $host,  $username,  $password,  $root_path, [ $port = 21], [ $timeout = 10])
  • $host
  • $username
  • $password
  • $root_path
  • $port
  • $timeout
data (line 514)

Requests data

void data ()
_chdir (line 599)

Change current working directory (CHDIR)

  • access: private
void _chdir ([ $dir = ''])
  • $dir
_check_command (line 785)

Check to make sure command was successful (FTP fsock only function)

  • access: private
void _check_command ([ $return = false])
  • $return
_chmod (line 616)

change file permissions (CHMOD)

  • access: private
void _chmod ( $file,  $perms)
  • $file
  • $perms
_close (line 672)

Close ftp session (CLOSE)

  • access: private
void _close ()
_close_data_connection (line 776)

Closes a connection used to send data

  • access: private
void _close_data_connection ()
_cwd (line 687)

Return current working directory (CWD)

At the moment not used by parent class

  • access: private
void _cwd ()
_delete (line 663)

Delete file (DELETE)

  • access: private
void _delete ( $file)
  • $file
_init (line 532)

Init FTP Session

  • access: private
void _init ()
_ls (line 697)

Return list of files in a given directory (LS)

  • access: private
void _ls ([ $dir = './'])
  • $dir
_mkdir (line 571)

Create Directory (MKDIR)

  • access: private
void _mkdir ( $dir)
  • $dir
_open_data_connection (line 741)

Opens a connection to send data (FTP fosck only function)

  • access: private
void _open_data_connection ()
_put (line 627)

Upload file to location (PUT)

  • access: private
void _put ( $from_file,  $to_file)
  • $from_file
  • $to_file
_rename (line 589)

Rename File

  • access: private
void _rename ( $old_handle,  $new_handle)
  • $old_handle
  • $new_handle
_rmdir (line 580)

Remove directory (RMDIR)

  • access: private
void _rmdir ( $dir)
  • $dir
_send_command (line 720)

Send a command to server (FTP fsock only function)

  • access: private
void _send_command ( $command, [ $args = ''], [ $check = true])
  • $command
  • $args
  • $check

Inherited Methods

Inherited From transfer

 transfer::transfer()
 transfer::close_session()
 transfer::copy_file()
 transfer::delete_file()
 transfer::file_exists()
 transfer::make_dir()
 transfer::methods()
 transfer::open_session()
 transfer::overwrite_file()
 transfer::remove_dir()
 transfer::rename()
 transfer::write_file()

Documentation generated on Tue, 26 Aug 2008 08:34:05 +0200 by phpDocumentor 1.4.2