Re: Limitations with webservers. WAS: Show the Progress of a file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

On 01/22/2004 04:59 AM, B.A.T. Svensson wrote:
I am a bit confused now.

We are talking about a progress bar at the client side, that
is to feed the enduser with progress information, or?

According to what Rich Stupek explainded to me in a private
e-mail the client upload the file in a syncrone simplex mode,
hence the client can't here any message passed back from
the web server. So whatever the webserver happen to do while
the client is uploading the file does not really matter(?).

In other words, a progress bar must be a client dependent thing?

No, client side is just one type of solution. It does not depend on the server side language but usually you need Java applets or client side add-ons that have plenty of inconvinients. While they generally work, these necessary add-ons may not be available.


Another point is that client side view of progress is to show what was sent, which is usually in advance of what was received. This distorts progress and exhibit silly messages like 100% completed when the server may take a while to receive everything.

The server side solutions measure what was received. You can't use the same connection to send the form files and exhibit progress because the browser is busy sending the files and will only show the resulting page at the end.

Server side solutions work by using another HTTP connection opened in a separate frame or window to show the progress reported by the connection that is handling the data being received. See this solution for an example:

http://www.raditha.com/megaupload/


--


Regards,
Manuel Lemos

Free ready to use OOP components written in PHP
http://www.phpclasses.org/

MetaL - XML based meta-programming language
http://www.meta-language.net/

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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux