ftp_size

(PHP 4, PHP 5, PHP 7) Returns the size of the given file int ftp_size ( resource $ftp_stream, string $remote_file ) ftp_size() returns the size of the given file in bytes. Note: Not all servers support this feature. Parameters: ftp_stream The link identifier of the FTP connection. remote_file The remote file. Re

ftp_site

(PHP 4, PHP 5, PHP 7) Sends a SITE command to the server bool ftp_site ( resource $ftp_stream, string $command ) ftp_site() sends the given SITE command to the FTP server. SITE commands are not standardized, and vary from server to server. They are useful for handling such things as file permissions and group membership. Parameters: ftp_stream The link identifier of the

ftp_set_option

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Set miscellaneous runtime FTP options bool ftp_set_option ( resource $ftp_stream, int $option, mixed $value ) This function controls various runtime options for the specified FTP stream. Parameters: ftp_stream The link identifier of the FTP connection. option Currently, the following options are support

ftp_rmdir

(PHP 4, PHP 5, PHP 7) Removes a directory bool ftp_rmdir ( resource $ftp_stream, string $directory ) Removes the specified directory on the FTP server. Parameters: ftp_stream The link identifier of the FTP connection. directory The directory to delete. This must be either an absolute or relative path to an empty directory.

ftp_rename

(PHP 4, PHP 5, PHP 7) Renames a file or a directory on the FTP server bool ftp_rename ( resource $ftp_stream, string $oldname, string $newname ) ftp_rename() renames a file or a directory on the FTP server. Parameters: ftp_stream The link identifier of the FTP connection. oldname The old file/directory name. newna

ftp_rawlist

(PHP 4, PHP 5, PHP 7) Returns a detailed list of files in the given directory mixed ftp_rawlist ( resource $ftp_stream, string $directory [, bool $recursive = false ] ) ftp_rawlist() executes the FTP LIST command, and returns the result as an array. Parameters: ftp_stream The link identifier of the FTP connection. directory The directo

ftp_raw

(PHP 5, PHP 7) Sends an arbitrary command to an FTP server array ftp_raw ( resource $ftp_stream, string $command ) Sends an arbitrary command to the FTP server. Parameters: ftp_stream The link identifier of the FTP connection. command The command to execute. Returns: Returns the server's response as an array of

ftp_quit

(PHP 4, PHP 5, PHP 7) Alias of ftp_close() This function is an alias of: ftp_close().

ftp_pwd

(PHP 4, PHP 5, PHP 7) Returns the current directory name string ftp_pwd ( resource $ftp_stream ) Parameters: ftp_stream The link identifier of the FTP connection. Returns: Returns the current directory name or FALSE on error. Examples: ftp_pwd() example <?php // set up

ftp_put

(PHP 4, PHP 5, PHP 7) Uploads a file to the FTP server bool ftp_put ( resource $ftp_stream, string $remote_file, string $local_file, int $mode [, int $startpos = 0 ] ) ftp_put() stores a local file on the FTP server. Parameters: ftp_stream The link identifier of the FTP connection. remote_file The remote file path.