WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

PHP 5 FTP Functions


PHP FTP Introduction

The FTP capacities give customer access to document servers through the File Exchange Protocol (FTP).

The FTP capacities are utilized to open, login and close associations, just as transfer, download, rename, erase, and get data on records from document servers. Not the majority of the FTP capacities will work with each server or return the same outcomes. The FTP capacities wound up accessible with PHP 3.

If you as it were wish to peruse from or keep in touch with a document on a FTP server, think about utilizing the ftp:// wrapper with the Filesystem capacities which give an easier and increasingly natural interface.


Installation

For these capacities to work, you need to order PHP with - empower ftp.

The Windows variant of PHP has worked in help for this extension.


PHP 5 FTP Functions

Function Description
ftp_alloc() Allocates space for a document to be transferred to the FTP server
ftp_cdup() Changes to the parent catalog on the FTP server
ftp_chdir() Changes the present catalog on the FTP server
ftp_chmod() Sets consents on a record through FTP
ftp_close() Closes a FTP connection
ftp_connect() Opens a FTP connection
ftp_delete() Deletes a record on the FTP server
ftp_exec() Executes a direction on the FTP server
ftp_fget() Downloads a record from the FTP server and spares it into an open nearby file
ftp_fput() Uploads from an open document and spares it to a record on the FTP server
ftp_get_option() Returns runtime choices of the FTP connection
ftp_get() Downloads a record from the FTP server
ftp_login() Logs in to the FTP connection
ftp_mdtm() Returns the last adjusted time of a predetermined file
ftp_mkdir() Creates another registry on the FTP server
ftp_nb_continue() Continues recovering/sending a record (non-blocking)
ftp_nb_fget() Downloads a record from the FTP server and spares it into an open record (non-blocking)
ftp_nb_fput() Uploads from an open record and spares it to a document on the FTP server (non-blocking)
ftp_nb_get() Downloads a document from the FTP server (non-blocking)
ftp_nb_put() Uploads a document to the FTP server (non-blocking)
ftp_nlist() Returns a rundown of documents in the predefined catalog on the FTP server
ftp_pasv() Turns inactive mode on or off
ftp_put() Uploads a document to the FTP server
ftp_pwd() Returns the present catalog name
ftp_quit() An assumed name of ftp_close()
ftp_raw() Sends a crude order to the FTP server
ftp_rawlist() Returns a rundown of documents with record data from a predetermined directory
ftp_rename() Renames a document or index on the FTP server
< ftp_rmdir() Deletes a vacant index on the FTP server
ftp_set_option() Sets runtime alternatives for the FTP connection
ftp_site() Sends a FTP SITE order to the FTP server
ftp_size() Returns the measure of the predefined file
ftp_ssl_connect() Opens a protected SSL-FTP connection
ftp_systype() Returns the framework type identifier of the FTP server

PHP 5 Predefined FTP Constants

Constant Type PHP
FTP_ASCII Integer PHP 3
FTP_TEXT Integer PHP 3
FTP_BINARY Integer PHP 3
FTP_IMAGE Integer PHP 3
FTP_TIMEOUT_SEC Integer PHP 3
FTP_AUTOSEEK Integer PHP 4.3
FTP_AUTORESUME Integer PHP 4.3
FTP_FAILED Integer PHP 4.3
FTP_FINISHED Integer PHP 4.3
FTP_MOREDATA Integer PHP 4.3