downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ftp_nb_fget> <ftp_mkdir
[edit] Last updated: Fri, 25 May 2012

view this page in

ftp_nb_continue

(PHP 4 >= 4.3.0, PHP 5)

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

Description

int ftp_nb_continue ( resource $ftp_stream )

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

Liste de paramètres

ftp_stream

L'identifiant du lien de connexion FTP.

Valeurs de retour

Retourne FTP_FAILED ou FTP_FINISHED ou FTP_MOREDATA.

Exemples

Exemple #1 Exemple avec ftp_nb_continue()

<?php

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

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



add a note add a note User Contributed Notes ftp_nb_continue
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites