ftp_connection

Class ftp_connection Simple FTP protocol implementation.
Methods Summary
public
# __construct( string $ftp_server , int $ftp_port = 21, string $ftp_user = 'anonymous', string $ftp_pass = 'ftpclient@simplemachines.org' )
Create a new FTP connection. ..
public
# connect( string $ftp_server , int $ftp_port = 21, string $ftp_user = 'anonymous', string $ftp_pass = 'ftpclient@simplemachines.org' )
Connects to a server
public
# chdir( string $ftp_path )
Changes to a directory (chdir) via the ftp connection
public
# chmod( string $ftp_file , int|string $chmod )
Changes a files atrributes (chmod)
public
# check_response( string $desired )
Reads the response to the command from the server
public
# passive( )
Used to create a passive connection
public
# create_file( string $ftp_file )
Creates a new file on the server
public
# list_dir( string $ftp_path = '', bool $search = false )
Generates a directory listing for the current directory
public
# locate( string $file , string $listing = NULL )
Determines the current directory we are in
public
# create_dir( string $ftp_dir )
Creates a new directory on the server
public
# detect_path( string $filesystem_path , string $lookup_file = NULL )
Detects the current path
public
# close( )
Close the ftp connection
Properties Summary
public string $connection
# NULL
public string $error
# NULL
public string $last_message
# NULL
public bool $pasv
# NULL