PHP GTK + FTP
| From: | Webmaster Phelios.org | Date: | Thu, 31 Aug 2006 19:24:23 +0000 |
| Subject: | PHP GTK + FTP | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-7180@lists.php.net to get a copy of this message | ||
Hello people
I got a question
I would like to make a progress bar monitor the process of file upload using the FTP extension of PHP.
My process is this
1. Open the FTP connection
2. Open the file
3. Stream the file to the server
3.4. Calculate the % of file pointer using ftell while streaming
3.5 Updating progress bar with %
4. Close the ftp session
5. Close the file
To accomplish this I use a "popup dialog" (not modal) and by asking the user a file to upload. This window as a progress bar but, I can't see the progress bar update while my file is being sent, not until the file upload/download completes its operation.
Thank you
Pedro