Re: Monitoring ftp_get

From: Date: Mon, 05 May 2003 10:36:20 +0000
Subject: Re: Monitoring ftp_get
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-146411@lists.php.net to get a copy of this message
Use ftp_nb_get() instead (non-blocking). This is a modified example from the manual. // Initate the download $ret = ftp_nb_get($my_connection, "test", "README", FTP_BINARY); while ($ret == FTP_MOREDATA) { // check for filesize here echo filesize('README').'<br>'; // Continue downloading... $ret = ftp_nb_continue ($my_connection); } if ($ret != FTP_FINISHED) { echo "There was an error downloading the file..."; exit(1); } CDitty wrote:
Is it possible to monitor the ftp_get command? I have a rather LARGE ftp process that I would like to monitor. Can anyone think of a way to do this? Either php wise or via telnet/system wise? CDitty


« previous php.general (#146411) next »