sorry bare with me.. it just looks funny.
function download_timer ($filesize, $connection)
{
$time_secs = $file / $connection;
$time_mins = $time_secs / 60;
return $time_mins;
}
echo 'File size: ' . $filesize . 'KB';
$speeds = array('56','640','1500');
while (list(, $speed) = each($speeds))
{
echo 'On ' . $speed . 'K: ' . download_timer($filesize,$speed);
}
The first part, where you made the function, it doesn't pass anything. it returns $time_mins; but what does it do after that? This is how it echo on a 956 KB file:
On 56K: 0 On 640K: 0 On 1500K: 0
just a little confused 😉