I want to add one the download page something, in the comparing Premium/free table.
For ex, if speed for free users is 150KB, and the file is 150MB, it means it can be downloaded for 1000seconds = 16 minutes and 40 seconds.
If it is premium, it has a speed of 5MB/s, so it means 30 seconds.
Calculations are simple, File-size/speed_free = seconds
Speed_free and speed_premium will be set by me on the file (no need to take from system). How this can be done? It shouldn't be very hard, just to take the fsize, do the division, that's all.
Can anyone help?
1 post • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests