您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

PHP FTP 函数使用教程_PHP教程

2024/3/1 17:02:27发布19次查看
php ftp 函数使用教程
引进的php的ftp
该功能提供的ftp客户端访问文件服务器通过文件传输协议( ftp ) 。
该ftp函数是用来打开,登录名和密切的联系,以及上传,下载,重命名,删除和获取信息的文件从文件服务器。并不是所有的ftp功能将与每一个服务器或返回同样的结果。该ftp函数成为可与php 3 。
这些功能都是为了详细访问ftp服务器。如果你只希望阅读或写入文件在ftp服务器上,可以考虑使用包装的ftp://与文件的功能。
安装
php的windows版本内置了支持的ftp延长。因此, ftp函数将自动工作。
然而,如果您运行的是linux版本的php中,你将不得不与编译php -启用-的f tp( p hp4中+ )或- wi th-的f t p(p h p3中)得到的f t p职能工作。
php的ftp函数
php的:显示最早的php版本,支持的功能。function description php
ftp_alloc() allocates space for a file to be uploaded to the ftp server 5
ftp_cdup() changes the current directory to the parent directory on the ftp server 3
ftp_chdir() changes the current directory on the ftp server 3
ftp_chmod() sets permissions on a file via ftp 5
ftp_close() closes an ftp connection 4
ftp_connect() opens an ftp connection 3
ftp_delete() deletes a file on the ftp server 3
ftp_exec() executes a program/command on the ftp server 4
ftp_fget() downloads a file from the ftp server and saves it to an open file 3
ftp_fput() uploads from an open file and saves it to a file on the ftp server 3
ftp_get_option() returns runtime behaviors of the ftp connection 4
ftp_get() downloads a file from the ftp server 3
ftp_login() logs on to an ftp connection 3
ftp_mdtm() returns the last modified time of a specified file 3
ftp_mkdir() creates a new directory on the ftp server 3
ftp_nb_continue() continues retrieving/sending a file (non-blocking) 4
ftp_nb_fget() downloads a file from the ftp server and saves it to an open file (non-blocking) 4
ftp_nb_fput() uploads from an open file and saves it to a file on the ftp server (non-blocking) 4
ftp_nb_get() downloads a file from the ftp server (non-blocking) 4
ftp_nb_put() uploads a file to the ftp server (non-blocking) 4
ftp_nlist() lists the files in a specified directory on the ftp server 3
ftp_pasv() turns passive mode on or off 3
ftp_put() uploads a file to the ftp server 3
ftp_pwd() returns the current directory name 3
ftp_quit() alias of ftp_close() 3
ftp_raw() sends a raw command to the ftp server 5
ftp_rawlist() returns a detailed list of files in the specified directory 3
ftp_rename() renames a file or directory on the ftp server 3
ftp_rmdir() removes a directory on the ftp server 3
ftp_set_option() sets runtime options for the ftp connection 4
ftp_site() sends a site command to the server 3
ftp_size() returns the size of the specified file 3
ftp_ssl_connect() opens a secure ssl-ftp connection 4
ftp_systype() returns the system type identifier of the ftp server 3
php ftp constantsphp: indicates the earliest version of php that supports the constant.
constant description php
ftp_ascii   3
ftp_text   3
ftp_binary   3
ftp_image   3
ftp_timeout_sec   3
ftp_autoseek   4
ftp_autoresume determine resume position and start position for get and put requests automatically 4
ftp_failed asynchronous transfer has failed 4
ftp_finished asynchronous transfer has finished 4
ftp_moredata asynchronous transfer is still active 4
http://www.bkjia.com/phpjc/630491.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/630491.htmltecharticlephp ftp 函数使用教程 引进的php的ftp 该功能提供的ftp客户端访问文件服务器通过文件传输协议( ftp ) 。 该ftp函数是用来打开,登录名和密...
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product