bigpoppa Posted July 16, 2006 Share Posted July 16, 2006 Hey I need help (doesn't everyone?) on a script. The script functions like this:Please wait X seconds for download (for example x=15 seconds)Please wait 14 seconds for download (and then a second later)Please wait 13 seconds for download... (process keeps repeating)Click [u]here[/u] to download the file you requested (occurs at 0 seconds)Does anyone know of a script like that one? I have seen many sites use it including megaupload.com. I am running a site with many downloads and the ones that are files over 3 megabytes must have a timer inorder to conserve bandwidth (and files over 5 megabytes download speed will be limited to 25kbps, but I have found a script on how to do that using php, but am still awaiting help on how to use it since its just a code snippet and i am a fresh to php). If you know what language this script is written in (I am guessing javascript or php) and could possible provide me with an example or a place I can find that script it would be of a great help to me. Thanks a bunch. Quote Link to comment https://forums.phpfreaks.com/topic/14795-please-wait-x-seconds-url-revealer/ Share on other sites More sharing options...
pixy Posted July 16, 2006 Share Posted July 16, 2006 Looks like javascript to me. Javascript for the countdown, and PHP to force the download (using headers). Quote Link to comment https://forums.phpfreaks.com/topic/14795-please-wait-x-seconds-url-revealer/#findComment-59090 Share on other sites More sharing options...
True`Logic Posted July 17, 2006 Share Posted July 17, 2006 exactly, simple[code]Download in.. <span id="blah"></span>[/code]and[code]document.getElementById("blah").innerHTML= X + "seconds"[/code] Quote Link to comment https://forums.phpfreaks.com/topic/14795-please-wait-x-seconds-url-revealer/#findComment-59179 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.