Re: PHP GTK + FTP
| From: | Scott Mattocks | Date: | Thu, 31 Aug 2006 19:29:56 +0000 |
| Subject: | Re: PHP GTK + FTP | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-7182@lists.php.net to get a copy of this message | ||
Webmaster Phelios.org wrote:
I would like to make a progress bar monitor the process of file upload using the FTP extension of PHP. My process is this 3. Stream the file to the server 3.4. Calculate the % of file pointer using ftell while streaming 3.5 Updating progress bar with % 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.I think uploading the file is probably a single PHP call for the entire file. This means that you have to wait for the upload to finish before going to the next PHP command. If this is the case you can't update the progress bar because you can't execute the PHP commands. If you can upload the file in chunks, you will be able to update the progress bar. Otherwise you would need to find a way to execute 2 php commands at once which as far as I know can't be done. -- Scott Mattocks Author of: Pro PHP-GTK http://www.crisscott.com