PHP ftp_nb_continue() İşlevi
Örnek
Sunucudan bir dosya indirin, başka bir şey yaparken indirmeye devam edin (engellemesiz):
<?php
// initiate download
$d = ftp_nb_get($ftp_conn, "local.txt", "server.txt", FTP_BINARY)
while ($d == FTP_MOREDATA)
{
// do whatever you want
// continue downloading
$d = ftp_nb_continue($ftp_conn);
}
if ($d != FTP_FINISHED)
{
echo "Error downloading file.";
exit(1);
}
?>
Tanım ve Kullanım
ftp_nb_continue() işlevi, FTP sunucusuna bir dosya almaya/göndermeye devam eder.
Sözdizimi
ftp_nb_continue(ftp_conn);
Parametre Değerleri
Parameter | Description |
---|---|
ftp_conn | Required. Specifies the FTP connection to use |
Teknik detaylar
Geri dönüş değeri: | Aşağıdaki değerlerden biri:
|
---|---|
PHP Sürümü: | 4.3+ |
❮ PHP FTP Referansı