codrgii Posted April 11, 2011 Share Posted April 11, 2011 How am i able to setup a countdown timer? I use the time(); function and want to compare that time with another time that is 8 hours ahead to form a countdown timer, how am i able to do this using php? Link to comment https://forums.phpfreaks.com/topic/233406-timer/ Share on other sites More sharing options...
php.ajax.coder Posted April 11, 2011 Share Posted April 11, 2011 I don't believe this is possible in php alone you'll need to use javascript or use a combination to reload the page or call a script (AJAX) at regular intervals thereby effectively giving you the count down effect. Link to comment https://forums.phpfreaks.com/topic/233406-timer/#findComment-1200252 Share on other sites More sharing options...
codrgii Posted April 11, 2011 Author Share Posted April 11, 2011 Well then how would i be able to show what the date is in text form using the time() function? Link to comment https://forums.phpfreaks.com/topic/233406-timer/#findComment-1200258 Share on other sites More sharing options...
Pikachu2000 Posted April 12, 2011 Share Posted April 12, 2011 date Link to comment https://forums.phpfreaks.com/topic/233406-timer/#findComment-1200611 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.