[thelist] PHP help wanted & fonts tip

Tony Crockford tonyc at boldfish.co.uk
Mon Oct 28 07:20:31 CST 2002


> If you want to code in PHP then you can get the file size and
> divide it by
> known connection speeds. So if you have a file that is 86Kb;
>
> 28Kbps connection - 3.07 seconds
> 33Kbps connection - 2.61 seconds
>
> etc.
>
> So really there is just some quick math involved, along with
> the knowledge
> that connection speed is not absolute. A 28K connection may
> not really be
> 28K at all.
>
> HTH!
>

Thanks for this, I was being lazy and looking for a snippet of code that
would do the relevant division, add a bit for luck (maybe even create a
range) and convert to hh:mm:ss all at the same time.  If it came with
the extra math that had a better estimate of download time (time to
download a file includes the upload of requests as well and 56k modem
actually runs at 42kbs) then even better.  If no-one has one I'll have
to code my own, but time is against me!

Thanks again,

Tony




More information about the thelist mailing list