ftp_get

(PHP 4, PHP 5, PHP 7) Downloads a file from the FTP server bool ftp_get ( resource $ftp_stream, string $local_file, string $remote_file, int $mode [, int $resumepos = 0 ] ) ftp_get() retrieves a remote file from the FTP server, and saves it into a local file. Parameters: ftp_stream The link identifier of the FTP connection. local_file

ftp_get_option

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Retrieves various runtime behaviours of the current FTP stream mixed ftp_get_option ( resource $ftp_stream, int $option ) This function returns the value for the requested option from the specified FTP connection. Parameters: ftp_stream The link identifier of the FTP connection. option Currently, the fo

ftp_fput

(PHP 4, PHP 5, PHP 7) Uploads from an open file to the FTP server bool ftp_fput ( resource $ftp_stream, string $remote_file, resource $handle, int $mode [, int $startpos = 0 ] ) ftp_fput() uploads the data from a file pointer to a remote file on the FTP server. Parameters: ftp_stream The link identifier of the FTP connection. remote_file

ftp_fget

(PHP 4, PHP 5, PHP 7) Downloads a file from the FTP server and saves to an open file bool ftp_fget ( resource $ftp_stream, resource $handle, string $remote_file, int $mode [, int $resumepos = 0 ] ) ftp_fget() retrieves remote_file from the FTP server, and writes it to the given file pointer. Parameters: ftp_stream The link identifier of the FTP connection.

ftp_exec

(PHP 4 >= 4.0.3, PHP 5, PHP 7) Requests execution of a command on the FTP server bool ftp_exec ( resource $ftp_stream, string $command ) Sends a SITE EXEC command request to the FTP server. Parameters: ftp_stream The link identifier of the FTP connection. command The command to execute. Returns: Returns TRUE

ftp_delete

(PHP 4, PHP 5, PHP 7) Deletes a file on the FTP server bool ftp_delete ( resource $ftp_stream, string $path ) ftp_delete() deletes the file specified by path from the FTP server. Parameters: ftp_stream The link identifier of the FTP connection. path The file to delete. Returns: Returns TRUE on success or FALSE

ftp_connect

(PHP 4, PHP 5, PHP 7) Opens an FTP connection resource ftp_connect ( string $host [, int $port = 21 [, int $timeout = 90 ]] ) ftp_connect() opens an FTP connection to the specified host. Parameters: host The FTP server address. This parameter shouldn't have any trailing slashes and shouldn't be prefixed with ftp://. port This paramete

ftp_close

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Closes an FTP connection bool ftp_close ( resource $ftp_stream ) ftp_close() closes the given link identifier and releases the resource. Note: After calling this function, you can no longer use the FTP connection and must create a new one with ftp_connect(). Parameters: ftp_stream The link identifier of the FTP connection.

ftp_chmod

(PHP 5, PHP 7) Set permissions on a file via FTP int ftp_chmod ( resource $ftp_stream, int $mode, string $filename ) Sets the permissions on the specified remote file to mode. Parameters: ftp_stream The link identifier of the FTP connection. mode The new permissions, given as an octal value. filename

ftp_chdir

(PHP 4, PHP 5, PHP 7) Changes the current directory on a FTP server bool ftp_chdir ( resource $ftp_stream, string $directory ) Changes the current directory to the specified one. Parameters: ftp_stream The link identifier of the FTP connection. directory The target directory. Returns: Returns TRUE on success or