PHP FTP Amount Transfered
<p>Is is possible to detect how much data has been transfered using PHP's <a href="http://www.php.net/manual/en/book.ftp.php" rel="nofollow">FTP module</a>? </p>

<p>Pseudo Code</p>

<pre><code>... connect to server
ftp_nb_put(file...)
while(true) {
    $data = ftp_nb_continue(file...);
    if ($data === FTP_MOREDATA) {
        continue ... get amount transfered ...
    } else {
        break ... check if finished etc ...
    }
}
</code></pre>
