PDA

View Full Version : download status


_D_
02-16-2005, 03:08 PM
I'm looking to create a script that enables me to see the % of a file that has been downloaded.

For example. A person goes to a download link the script then emails me or sets a status flag only if the file is fully downloaded.

This will be ued on a site to stop multiple downloads of the same file.

thanks for your time

celestine
02-18-2005, 02:17 AM
Maybe you can invoke the use of Javascript to do it with PHP.

_D_
02-18-2005, 04:36 PM
cant use java script as its for WAP

firepages
02-18-2005, 11:54 PM
Then the answer is no short of guessing and displaying a graphic which guestimates how much info has been downloaded ...

<edit>
actually solutions are possible but they are complex on the server side and would require constantly refreshing pages or iframes on the client.

e.g. the server streams the download via a script which will periodically write to a session file the current amount of data output , the client would then refresh an iframe or similar and call another page which polls the session file and displays the (relatively) current status.
</edit>