首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

ftp_nb_continue

(PHP 4 >= 4.3.0, PHP 5, PHP 7)

ftp_nb_continue - 继续检索/发送文件(非阻塞)

描述

代码语言:javascript
复制
int ftp_nb_continue ( resource $ftp_stream )

继续检索/发送非阻塞文件。

参数

ftp_stream

FTP连接的链接标识符。

返回值

返回FTP_FAILEDFTP_FINISHEDFTP_MOREDATA

例子

示例#1 ftp_nb_continue()示例

代码语言:javascript
复制
<?php

// Initate the download
$ret = ftp_nb_get($my_connection, "test", "README", FTP_BINARY);
while ($ret == FTP_MOREDATA) {

   // Continue downloading...
   $ret = ftp_nb_continue($my_connection);
}
if ($ret != FTP_FINISHED) {
   echo "There was an error downloading the file...";
   exit(1);
}
?>

← ftp_mkdir

ftp_nb_fget →

扫码关注腾讯云开发者

领取腾讯云代金券