Hi

To Manuel: You have answered the questions better than i could have :-) thanx. Yes perl is used because it gives access to raw post data.

To Ed: If you are on a standard rpm distro all the modules are probably there already. and thus megaupload becomes plug and play.

To David: It does use a javascript to make a popup that's all. If you eliminate the popup and show the progress bar in a frame you don't need any javascript at all

To Everyone: Enjoy your christmas.

best regards
raditha




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?


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:[EMAIL PROTECTED] Sent: Tuesday, December 23, 2003 12:46 PM To: [EMAIL PROTECTED] 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.





--
Raditha Dissanayake.
------------------------------------------------------------------------
http://www.radinks.com/sftp/         | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to