diff --git a/functions/ftp.xml b/functions/ftp.xml index 452fa47bc5..c2c6ef894b 100644 --- a/functions/ftp.xml +++ b/functions/ftp.xml @@ -1,5 +1,5 @@ - + FTP functions FTP @@ -29,10 +29,10 @@ Description - int ftp_connect + resource ftp_connect string host int port @@ -99,8 +99,8 @@ ftp_quit($conn_id); Description - int ftp_login - int ftp_stream + bool ftp_login + resource ftp_stream string username string password @@ -124,7 +124,7 @@ ftp_quit($conn_id); string ftp_pwd - int ftp_stream + resource ftp_stream @@ -142,8 +142,8 @@ ftp_quit($conn_id); Description - int ftp_cdup - int ftp_stream + bool ftp_cdup + resource ftp_stream @@ -164,8 +164,8 @@ ftp_quit($conn_id); Description - int ftp_chdir - int ftp_stream + bool ftp_chdir + resource ftp_stream string directory @@ -187,7 +187,7 @@ ftp_quit($conn_id); string ftp_mkdir - int ftp_stream + resource ftp_stream string directory @@ -195,7 +195,8 @@ ftp_quit($conn_id); Creates the specified directory. - Returns the newly created directory name on success, &false; on error. + Returns the newly created directory name on success, &false; on error. + @@ -208,8 +209,8 @@ ftp_quit($conn_id); Description - int ftp_rmdir - int ftp_stream + bool ftp_rmdir + resource ftp_stream string directory @@ -231,12 +232,13 @@ ftp_quit($conn_id); array ftp_nlist - int ftp_stream + resource ftp_stream string directory - Returns an array of filenames on success, &false; on error. + Returns an array of filenames from the specified directory + on success, &false; on error. @@ -253,7 +255,7 @@ ftp_quit($conn_id); array ftp_rawlist - int ftp_stream + resource ftp_stream string directory @@ -279,7 +281,7 @@ ftp_quit($conn_id); string ftp_systype - int ftp_stream + resource ftp_stream @@ -297,9 +299,9 @@ ftp_quit($conn_id); Description - int ftp_pasv + bool ftp_pasv int ftp_stream - int pasv + bool pasv @@ -324,8 +326,8 @@ ftp_quit($conn_id); Description - int ftp_get - int ftp_stream + bool ftp_get + resource ftp_stream string local_file string remote_file int mode @@ -357,9 +359,9 @@ ftp_quit($conn_id); Description - int ftp_fget - int ftp_stream - int fp + bool ftp_fget + resource ftp_stream + resource fp string remote_file int mode @@ -386,8 +388,8 @@ ftp_quit($conn_id); Description - int ftp_put - int ftp_stream + bool ftp_put + resource ftp_stream string remote_file string local_file int mode @@ -407,7 +409,7 @@ ftp_quit($conn_id); <function>ftp_put</function> example @@ -424,10 +426,10 @@ $upload = ftp_put ($conn_id, "$destination_file", "$source_file", FTP_ASCII); Description - int ftp_fput - int ftp_stream + bool ftp_fput + resource ftp_stream string remote_file - int fp + resource fp int mode @@ -454,7 +456,7 @@ $upload = ftp_put ($conn_id, "$destination_file", "$source_file", FTP_ASCII); int ftp_size - int ftp_stream + resource ftp_stream string remote_file @@ -478,7 +480,7 @@ $upload = ftp_put ($conn_id, "$destination_file", "$source_file", FTP_ASCII); int ftp_mdtm - int ftp_stream + resource ftp_stream string remote_file @@ -508,7 +510,7 @@ $upload = ftp_put ($conn_id, "$destination_file", "$source_file", FTP_ASCII); Description - boolean ftp_rename + bool ftp_rename resource ftp_stream string from string to @@ -517,7 +519,8 @@ $upload = ftp_put ($conn_id, "$destination_file", "$source_file", FTP_ASCII); ftp_rename renames the file or directory currently named from to the new name - to, on the FTP stream ftp_stream. + to, on the FTP stream + ftp_stream. Returns &true; on success, &false; on error. @@ -534,8 +537,8 @@ $upload = ftp_put ($conn_id, "$destination_file", "$source_file", FTP_ASCII); Description - int ftp_delete - int ftp_stream + bool ftp_delete + resource ftp_stream string path @@ -558,8 +561,8 @@ $upload = ftp_put ($conn_id, "$destination_file", "$source_file", FTP_ASCII); Description - int ftp_site - int ftp_stream + bool ftp_site + resource ftp_stream string cmd @@ -585,8 +588,8 @@ $upload = ftp_put ($conn_id, "$destination_file", "$source_file", FTP_ASCII); Description - int ftp_quit - int ftp_stream + boid ftp_quit + resource ftp_stream @@ -599,15 +602,15 @@ $upload = ftp_put ($conn_id, "$destination_file", "$source_file", FTP_ASCII); ftp_exec - Request execution of a program on the ftp server */ + Request execution of a program on the ftp server. Description - int ftp_exec - int stream + bool ftp_exec + resource stream string command