virtuexru Posted September 3, 2007 Share Posted September 3, 2007 I run a File Uploading site and I have a question. How can I set up a script so that my download link is "hidden" for 20 seconds and then shows up after the user waits that long? Anyone know? Thank you so much in advance! Quote Link to comment https://forums.phpfreaks.com/topic/67810-need-some-immediate-help-please/ Share on other sites More sharing options...
Jessica Posted September 3, 2007 Share Posted September 3, 2007 Javascript, not PHP. Also, read the posting guidelines, immediately. Quote Link to comment https://forums.phpfreaks.com/topic/67810-need-some-immediate-help-please/#findComment-340782 Share on other sites More sharing options...
tibberous Posted September 3, 2007 Share Posted September 3, 2007 No reason at all it can't be done with PHP. Use <meta http-equiv="refresh" content="20" />, and keep track of the time they get the page the first time, vs the time they get the page the second. Quote Link to comment https://forums.phpfreaks.com/topic/67810-need-some-immediate-help-please/#findComment-340788 Share on other sites More sharing options...
Azu Posted September 3, 2007 Share Posted September 3, 2007 No reason at all it can't be done with PHP. Use <meta http-equiv="refresh" content="20" />, and keep track of the time they get the page the first time, vs the time they get the page the second. Hurray for alternatives to javascript! Quote Link to comment https://forums.phpfreaks.com/topic/67810-need-some-immediate-help-please/#findComment-340794 Share on other sites More sharing options...
Jessica Posted September 3, 2007 Share Posted September 3, 2007 Which is still not PHP, it's HTML. Quote Link to comment https://forums.phpfreaks.com/topic/67810-need-some-immediate-help-please/#findComment-340798 Share on other sites More sharing options...
tibberous Posted September 3, 2007 Share Posted September 3, 2007 Which is still not PHP, it's HTML. echo "<meta http-equiv=\"refresh\" content=\"20\" />" Quote Link to comment https://forums.phpfreaks.com/topic/67810-need-some-immediate-help-please/#findComment-340800 Share on other sites More sharing options...
Azu Posted September 3, 2007 Share Posted September 3, 2007 Which is still not PHP, it's HTML. That's like saying "It's not a web server doing it, it's a client side language doing it!" It's kind of meaningless, and is so broad as to encompass THE ENTIRE INTERNET. Quote Link to comment https://forums.phpfreaks.com/topic/67810-need-some-immediate-help-please/#findComment-340801 Share on other sites More sharing options...
matthewhaworth Posted September 3, 2007 Share Posted September 3, 2007 Which is still not PHP, it's HTML. That's like saying "It's not a web server doing it, it's a client side language doing it!" It's kind of meaningless, and is so broad as to encompass THE ENTIRE INTERNET. No. No it's not. I get where you're coming from, but it's not. Also, I wouldn't use the method that is suggested as that would make the form load as that would mean it'll refresh every 20 seconds, every time it loads, unless you use flow control statements. I'd invest in Javascript for this, if not Flash? Quote Link to comment https://forums.phpfreaks.com/topic/67810-need-some-immediate-help-please/#findComment-340808 Share on other sites More sharing options...
Azu Posted September 3, 2007 Share Posted September 3, 2007 Which is still not PHP, it's HTML. That's like saying "It's not a web server doing it, it's a client side language doing it!" It's kind of meaningless, and is so broad as to encompass THE ENTIRE INTERNET. No. No it's not. I get where you're coming from, but it's not. Also, I wouldn't use the method that is suggested as that would make the form load as that would mean it'll refresh every 20 seconds, every time it loads, unless you use flow control statements. I'd invest in Javascript for this, if not Flash? PHP will NEVER directly control the client's browser. Nor will Apache. Nor will IIS. Nor will ASP. Nor will Coldfusion. The server sends data to the client, in a language the client understands, like HTML or CSS or whatever, and the client interprets THAT. Not the actual code on the server side. This applies to the entire internet. If I am wrong please explain. Quote Link to comment https://forums.phpfreaks.com/topic/67810-need-some-immediate-help-please/#findComment-340810 Share on other sites More sharing options...
Jessica Posted September 3, 2007 Share Posted September 3, 2007 Which is still not PHP, it's HTML. echo "<meta http-equiv=\"refresh\" content=\"20\" />" That's still HTML doing the work, dur. You can make PHP print anything you want but it doesn't mean PHP is making the page refresh. PHP is just printing the HTML which makes it refresh. If you don't know the basic HTML parts, you can't do it. There is no PHP function to do that, it is HTML no matter what language you use to print the HTML Quote Link to comment https://forums.phpfreaks.com/topic/67810-need-some-immediate-help-please/#findComment-340881 Share on other sites More sharing options...
Azu Posted September 4, 2007 Share Posted September 4, 2007 Which is still not PHP, it's HTML. That's like saying "It's not a web server doing it, it's a client side language doing it!" It's kind of meaningless, and is so broad as to encompass THE ENTIRE INTERNET. No. No it's not. I get where you're coming from, but it's not. Also, I wouldn't use the method that is suggested as that would make the form load as that would mean it'll refresh every 20 seconds, every time it loads, unless you use flow control statements. I'd invest in Javascript for this, if not Flash? PHP will NEVER directly control the client's browser. Nor will Apache. Nor will IIS. Nor will ASP. Nor will Coldfusion. The server sends data to the client, in a language the client understands, like HTML or CSS or whatever, and the client interprets THAT. Not the actual code on the server side. This applies to the entire internet. If I am wrong please explain. Quote Link to comment https://forums.phpfreaks.com/topic/67810-need-some-immediate-help-please/#findComment-341102 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.