update page now
PHP 8.1.34 Released!

ftp_nb_continue

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

ftp_nb_continueReprend le téléchargement d'un fichier (non bloquant)

Description

ftp_nb_continue(FTP\Connection $ftp): int

ftp_nb_continue() reprend le téléchargement d'un fichier sur la connexion ftp, de manière asynchrone.

Liste de paramètres

ftp

Une instance de FTP\Connection.

Valeurs de retour

Retourne FTP_FAILED ou FTP_FINISHED ou FTP_MOREDATA.

Historique

Version Description
8.1.0 La paramètre ftp attend désormais une instance de FTP\Connection ; auparavant, une resource était attendu.

Exemples

Exemple #1 Exemple avec ftp_nb_continue()

<?php

/ Initialisation du téléchargement
$ret = ftp_nb_get($ftp, "test", "README", FTP_BINARY);
while (
$ret == FTP_MOREDATA) {

/ Continue le téléchargement...
$ret = ftp_nb_continue($ftp);
}
if (
$ret != FTP_FINISHED) {
echo
"Il y a eu une erreur pendant le téléchargement du fichier...";
exit(
1);
}
?>

add a note

User Contributed Notes

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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant