![]() |
|
#1
|
||||
|
||||
Display Size and maybe download timeI want to be able to display the size of an image. If possilbe, also the download time it will take.
So it will first check the time it takes to download a specific file size. Then it will determine how long it will take, in terms of seconds, to download a specific file. http://mrbobdouglas.com/photoshop/ is what page I would use this on. What I want to do is just do something like <displaysize> then it will display the size of that particular image. If possible, it will show the amount of time to download it as well. Any ideas on this? __________________
Mr. Bob's Web Design - Tirelessly looking for ways to enhance the customer base of your business. |
||||
|
#2
|
||||
|
||||
Re: Display Size and maybe download timeTell me if this works out for you:
PHP Code:
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#3
|
||||
|
||||
|
Sorry to be so late to respond, its been a very busy week.
Anyways, I uploaded the code, http://mrbobdouglas.com/test/scripts...play/index.php Works fine so far. Is there a way to calculate the speed of the user, and then figure out the download time? If thats very complicated to do then lets not bother with it. How long did it take for you to type up the entire code to what it is right now? 1 more thing. I have about 4-5 images that I am going to make ready for download... Is there a way I can define 4-5 different sets, and then call them using like <$img1> or something to the effect? Thanks a lot by the way __________________
Mr. Bob's Web Design - Tirelessly looking for ways to enhance the customer base of your business. |
|
#4
|
||||
|
||||
|
Quote:
Quote:
Quote:
I knew you would be asking me this sooner or later.... but you'd have to wait a bit for me to paste some code next - for now I have to settle my domain name transfer thingy first.... I am running out of time! ![]() __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#5
|
||||
|
||||
|
Quote:
- Just because its something so simple, but it seems so complicated to me. I wish I knew how to write code like that so fast. I really need to buy a PHP book. Sooner or later I will. Quote:
- Its not a problem. Whenever you get a chance. __________________
Mr. Bob's Web Design - Tirelessly looking for ways to enhance the customer base of your business. |
|
#6
|
||||
|
||||
|
Quote:
OK, let's assume you want to offer the following images for download Code:
Also assume that these files are located in one location on your webserver e.g. /home/mybobdou/public_html/images/download/ The newer version of the sample code/page above could look something like this now: PHP Code:
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The