-
ftp_connect
打开 FTP 链接。
语法: int ftp_connect(string host, int [port]);
-
ftp_login
登入 FTP 服务器。
语法: boolean ftp_login(int ftp_stream, string username, string password);
-
ftp_pwd
取得目前所在路径。
语法: string ftp_pwd(int ftp_stream);
-
ftp_cdup
回上层目录。
语法: boolean ftp_cdup(int ftp_stream);
-
ftp_chdir
改变路径。
语法: boolean ftp_chdir(int ftp_stream, string directory);
-
ftp_mkdir
建新目录。
语法: string ftp_mkdir(int ftp_stream, string directory);
-
ftp_rmdir
删除目录。
语法: boolean ftp_chdir(int ftp_stream, string directory);
-
ftp_nlist
列出指定目录中所有文件。
语法: array ftp_nlist(int ftp_stream, string directory);
-
ftp_rawlist
详细列出指定目录中所有文件。
语法: array ftp_rawlist(int ftp_stream, string directory);
-
ftp_systype
显示服务器系统。
语法: string ftp_systype(int ftp_stream);
-
ftp_pasv
切换主被动传输模式。
语法: boolean ftp_systype(int ftp_stream);
-
ftp_get
下载文件。
语法: boolean ftp_get(int ftp_stream, string local_file, string remote_file, int mode);
-
ftp_fget
下载文件,并存在已开的文件中。
语法: boolean ftp_fget(int ftp_stream, int fp, string remote_file, int mode);
-
ftp_put
上传文件。
语法: boolean ftp_put(int ftp_stream, string remote_file, string local_file, int mode);
-
ftp_fput
上传已打开文件。
语法: boolean ftp_fput(int ftp_stream, string remote_file, int fp, int mode);
-
ftp_size
获得指定文件的大小。
语法: int ftp_size(int ftp_stream, string remote_file);
-
ftp_mdtm
获得指定文件的最后修改时间。
语法: int ftp_mdtm(int ftp_stream, string remote_file);
-
ftp_rename
将文件改名。
语法: boolean ftp_rename(int ftp_stream, string from, string to);
-
ftp_delete
将文件删除。
语法: boolean ftp_delete(int ftp_stream, string remote_file);
-
ftp_quit
关闭 FTP 连接。
语法: boolean ftp_quit(int ftp_stream);