Re: Re: progress in PHP

From: Date: Wed, 24 Dec 2003 05:47:41 +0000
Subject: Re: Re: progress in PHP
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-173286@lists.php.net to get a copy of this message
FWIW, here is a link to a PHP extension which enables the ability to track the progress of a PHP upload. I did not write the extension, so if it breaks something I am not responsible. It was previously discussed on the php-dev mailing list (internals@lists.php.net) a month or two ago, but it was never decided if it would be officially added into PHP. http://pdoru.from.ro/ -Jeremy On Tue, 2003-12-23 at 23:15, Manuel Lemos wrote: > 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? > > The problem is not showing progress but rather tracking progress. > > What you seem to not be understanding is that PHP handles uploads > internally. So, by the time a PHP script that gets the submitted upload > form starts running, the upload was already ended and the uploaded files > were copied to some temporary files. > > PHP itself does not give you a chance to track the progress of the > upload because that is something handled at the HTTP request level. > > The Perl solution is based on a script that handles and tracks the > upload and another that shows the progress. That is why you need to show > progress in a popup or a separate frame. > > > > -----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: > > > >>>>Join 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. > >> > >> > >>Check 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 the > > > > demos > > > >>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. > > > -- > > Regards, > Manuel Lemos > > Free ready to use OOP components written in PHP > http://www.phpclasses.org/

« previous php.general (#173286) next »