ftp_nb_continue

(PHP 4 >= 4.3.0, PHP 5)

ftp_nb_continue -- ファイルの取得/送信を継続する(非ブロッキング)

説明

int ftp_nb_continue ( resource ftp_stream )

非ブロッキングモードで、ファイルの取得/送信を継続します。

パラメータ

ftp_stream

FTP 接続のリンク ID 。

返り値

FTP_FAILEDFTP_FINISHED あるいは FTP_MOREDATA を返します。

例 1. ftp_nb_continue() の例

<?php

// ダウンロードを開始する
$ret = ftp_nb_get($my_connection, "test", "README", FTP_BINARY);
while (
$ret == FTP_MOREDATA) {

   
// ダウンロードを継続する…
   
$ret = ftp_nb_continue($my_connection);
}
if (
$ret != FTP_FINISHED) {
   echo
"There was an error downloading the file...";
   exit(
1);
}
?>