diff --git a/functions/ftp.xml b/functions/ftp.xml index 3e473fa14b..3238cfb744 100644 --- a/functions/ftp.xml +++ b/functions/ftp.xml @@ -1,5 +1,5 @@ - + FTP functions FTP @@ -101,10 +101,10 @@ ftp_quit($conn_id); string password - - Returns &true; on success, &false; on error. Logs in the given FTP stream. + + Returns &true; on success, &false; on error. @@ -139,10 +139,10 @@ ftp_quit($conn_id); int ftp_stream - - Returns &true; on success, &false; on error. Changes to the parent directory. + + Returns &true; on success, &false; on error. @@ -160,10 +160,10 @@ ftp_quit($conn_id); string directory - - Returns &true; on success, &false; on error. Changes to the specified directory. + + Returns &true; on success, &false; on error. @@ -181,10 +181,10 @@ ftp_quit($conn_id); string directory - - Returns the newly created directory name on success, &false; on error. Creates the specified directory. + + Returns the newly created directory name on success, &false; on error. @@ -202,10 +202,10 @@ ftp_quit($conn_id); string directory - - Returns &true; on success, &false; on error. Removes the specified directory. + + Returns &true; on success, &false; on error. @@ -287,14 +287,14 @@ ftp_quit($conn_id); int pasv - - Returns &true; on success, &false; on error. ftp_pasv turns on passive mode if the pasv parameter is &true; (it turns off passive mode if pasv is &false;.) In passive mode, data connections are initiated by the client, rather than by the server. + + Returns &true; on success, &false; on error. @@ -314,8 +314,6 @@ ftp_quit($conn_id); int mode - - Returns &true; on success, &false; on error. ftp_get retrieves remote_file from the FTP server, and saves it to local_file @@ -323,6 +321,8 @@ ftp_quit($conn_id); be either FTP_ASCII or FTP_BINARY. + + Returns &true; on success, &false; on error. @@ -343,13 +343,13 @@ ftp_quit($conn_id); int mode - - Returns &true; on success, &false; on error. ftp_fget retrieves remote_file from the FTP server, and writes it to the given file pointer, fp. The transfer mode specified must be either FTP_ASCII or FTP_BINARY. + + Returns &true; on success, &false; on error. @@ -369,14 +369,14 @@ ftp_quit($conn_id); int mode - - Returns &true; on success, &false; on error. ftp_put stores local_file on the FTP server, as remote_file. The transfer mode specified must be either FTP_ASCII or FTP_BINARY. + + Returns &true; on success, &false; on error. <function>ftp_put</function> example @@ -404,8 +404,6 @@ $upload = ftp_put ($conn_id, "$destination_file", "$source_file", FTP_ASCII); int mode - - Returns &true; on success, &false; on error. ftp_fput uploads the data from the file pointer fp until end of file. The results are stored @@ -413,6 +411,8 @@ $upload = ftp_put ($conn_id, "$destination_file", "$source_file", FTP_ASCII); mode specified must be either FTP_ASCII or FTP_BINARY + + Returns &true; on success, &false; on error. @@ -430,12 +430,12 @@ $upload = ftp_put ($conn_id, "$destination_file", "$source_file", FTP_ASCII); string remote_file - - Returns the file size on success, or -1 on error. ftp_size returns the size of a file. If an error occurs, of if the file does not exist, -1 is returned. Not all servers support this feature. + + Returns the file size on success, or -1 on error. @@ -453,14 +453,14 @@ $upload = ftp_put ($conn_id, "$destination_file", "$source_file", FTP_ASCII); string remote_file - - Returns a UNIX timestamp on success, or -1 on error. ftp_mdtm checks the last-modified time for a file, and returns it as a UNIX timestamp. If an error occurs, or the file does not exist, -1 is returned. Note that not all servers support this feature. + + Returns a UNIX timestamp on success, or -1 on error. ftp_mdtm does not work with directories. @@ -484,14 +484,14 @@ $upload = ftp_put ($conn_id, "$destination_file", "$source_file", FTP_ASCII); string to - - Returns &true; on success, &false; on error. ftp_rename renames the file or directory currently named from to the new name to, on the FTP stream ftp_stream. + + Returns &true; on success, &false; on error. @@ -509,12 +509,12 @@ $upload = ftp_put ($conn_id, "$destination_file", "$source_file", FTP_ASCII); string path - - Returns &true; on success, &false; on error. ftp_delete deletes the file specified by path from the FTP server. + + Returns &true; on success, &false; on error. @@ -532,14 +532,14 @@ $upload = ftp_put ($conn_id, "$destination_file", "$source_file", FTP_ASCII); string cmd - - Returns &true; on success, &false; on error. ftp_site sends the command specified by cmd 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. + + Returns &true; on success, &false; on error.