CakeFest 2024: The Official CakePHP Conference

ftp_nb_continue

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

ftp_nb_continueContinua a ricevere/trasmettere un file in modalita' non bloccante

Descrizione

ftp_nb_continue(resource $ftp_stream): int

Continua a ricevere/trasmettere un file in modalita' non bloccante.

Example #1 Esempio di funzioneftp_nb_continue()

<?php

// Inizia lo scaricamento
$ret = ftp_nb_get($my_connection, "test", "README", FTP_BINARY);
while (
$ret == FTP_MOREDATA) {

// Continua lo scaricamento...
$ret = ftp_nb_continue($my_connection);
}
if (
$ret != FTP_FINISHED) {
echo
"Errore nello scaricamento del file...";
exit(
1);
}
?>

Restituisce FTP_FAILED oppure FTP_FINISHED oppure FTP_MOREDATA.

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top