Re: Re: progress in PHP
| From: | Manuel Lemos | Date: | Tue, 23 Dec 2003 18:10:26 +0000 |
| Subject: | Re: Re: progress in PHP | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-173264@lists.php.net to get a copy of this message | ||
Hello,
On 12/23/2003 03:56 PM, Larry Brown wrote:
How does perl show progress of the upload if it is a server side scripting language and php can't do it because it is server side?Because PHP does not provide support to handle the raw HTTP request. By the time that PHP scripts starts executing, PHP already processed the uploaded copying the incoming data to a temporary file. OTOH, Perl provides support to handle the incoming HTTP request as it happens, not after it is done.
-----Original Message----- From: Manuel Lemos [mailto:mlemos@acm.org] Sent: Tuesday, December 23, 2003 12:46 PM To: php-general@lists.php.net Subject: Re: [PHP] Re: progress in PHP Hello, On 12/23/2003 03:31 PM, James Kaufman wrote:-- Regards, Manuel Lemos Free ready to use OOP components written in PHP http://www.phpclasses.org/demosCheck out http://pear.laurent-laville.org/HTML_Progress/. It is a pure php approach to displaying a progress bar. I haven't used it, but theJoin the 11,000 people who use megaupload progress bar (with a little help from perl) http://www.sourceforge.net/projects/megaupload/I tried. It wasn't worth all the perl mods I would to have had to install to make it work.look good.This a different thing. This is meant to track progress of server side tasks. File uploading is a client side task. Unfortunately, AFAIK there is no way to handle streams of HTTP requests. Therefore, there is no way to handle upload progress with a PHP only solution. The Raditha megaupload solution is based on a combination of Perl with PHP. It is probably the solution that uses more PHP but the hard work is done using Perl.