aleman84 Posted June 21, 2006 Share Posted June 21, 2006 Right from the start, I need a script that counts up to 45 minutes and every 1 minute it goes a function. what function is not the issue just a general function. It also needs to display the minutes and seconds for the user to see. This needs to auto update and the time needs to be based on server time not client side.I know its alot to ask but does any one know how to do this as its so very important!!!!Need help from the best php guys on the net!!!!lol I am so in need of help lol.Cheers. Quote Link to comment https://forums.phpfreaks.com/topic/12590-a-real-problem-with-counting-down-need-help-big-time/ Share on other sites More sharing options...
trq Posted June 21, 2006 Share Posted June 21, 2006 You cannot have a php script countdown. You will need to use a combination of javascript and php and some ajax implimentation. Ever looked at Ajax? [a href=\"http://marc.theaimsgroup.com/?l=php-general&m=112198633625636&w=2\" target=\"_blank\"]here[/a] is a quick introduction. Quote Link to comment https://forums.phpfreaks.com/topic/12590-a-real-problem-with-counting-down-need-help-big-time/#findComment-48247 Share on other sites More sharing options...
aleman84 Posted June 21, 2006 Author Share Posted June 21, 2006 oh, oh, oh! now I thought this might be simple ah! ok, well im new to AJAX! this is a whole new area for me. What I am looking to do is that possible after learning a little AJAX? or will I have to get into it big time?Thank you for the fast response! Quote Link to comment https://forums.phpfreaks.com/topic/12590-a-real-problem-with-counting-down-need-help-big-time/#findComment-48250 Share on other sites More sharing options...
trq Posted June 21, 2006 Share Posted June 21, 2006 Sounds pretty simple to me. You'd just need to setup a javascript timer that requests your php function every minute for 45 minutes while displaying the time to your client.Ajax is a set of theories more than a technoligy, dont let it get to you. Quote Link to comment https://forums.phpfreaks.com/topic/12590-a-real-problem-with-counting-down-need-help-big-time/#findComment-48253 Share on other sites More sharing options...
aleman84 Posted June 21, 2006 Author Share Posted June 21, 2006 Truely a master of PHP and all things scripting. Thank you for your help!Now all I need is for you to write the script for me! Just joking unless you want to lol!cheers for the guidance. Quote Link to comment https://forums.phpfreaks.com/topic/12590-a-real-problem-with-counting-down-need-help-big-time/#findComment-48254 Share on other sites More sharing options...
avo Posted June 21, 2006 Share Posted June 21, 2006 HI This may help you out a little but it will count down removing the echo "<br />" it will count accrosssleep is set at 1 second make this 60 per minute [code]for( $i=0;$i<45;$i++){ echo $i; echo "<br />"; ob_flush (); flush(); sleep(1); }[/code]it will not refresh to count up in one letter characterscheers Quote Link to comment https://forums.phpfreaks.com/topic/12590-a-real-problem-with-counting-down-need-help-big-time/#findComment-48267 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.