ftp_nb_continue
ftp_nb_continue
(PHP 4 >= 4.3.0, PHP 5, PHP 7)
ftp_nb_continue - 继续检索/发送文件(非阻塞)
描述
int ftp_nb_continue ( resource $ftp_stream )
继续检索/发送非阻塞文件。
参数
ftp_stream
FTP连接的链接标识符。
返回值
返回FTP_FAILED
或FTP_FINISHED
或FTP_MOREDATA
。
例子
示例#1 ftp_nb_continue()示例
<?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 →