FTP
Tässä on erilaisia FTP funktiota/ komentoja!
Funktio | Selite | Esimerkki |
---|---|---|
ftp_alloc() | Allocates space for a file to be uploaded to the FTP server | Esim |
ftp_cdup() | Changes to the parent directory on the FTP server | Esim |
ftp_chdir() | Changes the current directory on the FTP server | Esim |
ftp_chmod() | Sets permissions on a file via FTP | Esim |
ftp_close() | Closes an FTP connection | Esim |
ftp_connect() | Opens an FTP connection | Esim |
ftp_delete() | Deletes a file on the FTP server | Esim |
ftp_exec() | Executes a command on the FTP server | Esim |
ftp_fget() | Downloads a file from the FTP server and saves it into an open local file | Esim |
ftp_fput() | Uploads from an open file and saves it to a file on the FTP server | Esim |
ftp_get_option() | Returns runtime options of the FTP connection | Esim |
ftp_get() | Downloads a file from the FTP server | Esim |
ftp_login() | Logs in to the FTP connection | Esim |
ftp_mdtm() | Returns the last modified time of a specified file | Esim |
ftp_mkdir() | Creates a new directory on the FTP server | Esim |
ftp_nb_continue() | Continues retrieving/sending a file (non-blocking) | Esim |
ftp_nb_fget() | Downloads a file from the FTP server and saves it into an open file (non-blocking) | Esim |
ftp_nb_fput() | Uploads from an open file and saves it to a file on the FTP server (non-blocking) | Esim |
ftp_nb_get() | Downloads a file from the FTP server (non-blocking) | Esim |
ftp_nb_put() | Uploads a file to the FTP server (non-blocking) | Esim |
ftp_nlist() | Returns a list of files in the specified directory on the FTP server | Esim |
ftp_pasv() | Turns passive mode on or off | Esim |
ftp_put() | Uploads a file to the FTP server | Esim |
ftp_pwd() | Returns the current directory name | Esim |
ftp_quit() | An alias of ftp_close() | Esim |
ftp_raw() | Sends a raw command to the FTP server | Esim |
ftp_rawlist() | Returns a list of files with file information from a specified directory | Esim |
ftp_rename() | Renames a file or directory on the FTP server | Esim |
ftp_rmdir() | Deletes an empty directory on the FTP server | Esim |
ftp_set_option() | Sets runtime options for the FTP connection | Esim |
ftp_site() | Sends an FTP SITE command to the FTP server | Esim |
ftp_size() | Returns the size of the specified file | Esim |
ftp_ssl_connect() | Opens a secure SSL-FTP connection | Esim |
ftp_systype() | Returns the system type identifier of the FTP server | Esim |
Funktio | Tyyppi | PHP Versio | Esimerkki |
---|---|---|---|
FTP_ASCII | Integer | PHP 3 | Esim |
FTP_TEXT | Integer | PHP 3 | Esim |
FTP_BINARY | Integer | PHP 3 | Esim |
FTP_IMAGE | Integer | PHP 3 | Esim |
FTP_TIMEOUT_SEC | Integer | PHP 3 | Esim |
FTP_AUTOSEEK | Integer | PHP 4.3 | Esim |
FTP_AUTORESUME | Integer | PHP 4.3 | Esim |
FTP_FAILED | Integer | PHP 4.3 | Esim |
FTP_FINISHED | Integer | PHP 4.3 | Esim |
FTP_MOREDATA | Integer | PHP 4.3 | Esim |
HTTP
Tässä on erilaisia HTTP funktiota/ komentoja!
Function | Description | Esimerkki |
---|---|---|
header() | Sends a raw HTTP header to a client | Esim |
headers_list() | Returns a list of response headers sent (or ready to send) | Esim |
headers_sent() | Checks if / where the HTTP headers have been sent | Esim |
setcookie() | Defines a cookie to be sent along with the rest of the HTTP headers | Esim |
setrawcookie() | Defines a cookie (without URL encoding) to be sent along with the rest of the HTTP headers | Esim |