Jump to content

a real problem with counting down!!!! need help big time!!!!


Recommended Posts

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.
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.
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!
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.
HI

This may help you out a little but it will count down
removing the echo "<br />" it will count accross

sleep 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 characters

cheers
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.