Could someone please explain or post an example how I can calculate the ETA of a file download? For example, let's say I have a script that downloads a file from the WWW via sockets, how can I show how many seconds, minutes or hours it will take to finish the download? Is there a formula I can use?
Thanks in advance!