samoi Posted November 10, 2008 Share Posted November 10, 2008 Hi actually, I made a script that count down an event for me. but the seconds doesn't work! it actually work and printed to my browser, but it doesn't change every second, I have to refresh the browser to let it work! anyhelp? Link to comment https://forums.phpfreaks.com/topic/132093-how-to-get-seconds-work-in-php-pages/ Share on other sites More sharing options...
The Little Guy Posted November 10, 2008 Share Posted November 10, 2008 Use JavaScript, too. Link to comment https://forums.phpfreaks.com/topic/132093-how-to-get-seconds-work-in-php-pages/#findComment-686459 Share on other sites More sharing options...
cooldude832 Posted November 10, 2008 Share Posted November 10, 2008 PreHypertext Processor is what PHP is so you can't do updating PostHypertext processing with issuing a new request. Link to comment https://forums.phpfreaks.com/topic/132093-how-to-get-seconds-work-in-php-pages/#findComment-686481 Share on other sites More sharing options...
samoi Posted November 10, 2008 Author Share Posted November 10, 2008 Use JavaScript, too. Thank you for your reply could you show me an example please? Thank you in advance Link to comment https://forums.phpfreaks.com/topic/132093-how-to-get-seconds-work-in-php-pages/#findComment-686890 Share on other sites More sharing options...
samoi Posted November 10, 2008 Author Share Posted November 10, 2008 PreHypertext Processor is what PHP is so you can't do updating PostHypertext processing with issuing a new request. I understood none! I'm new to PHP ! thank you though Link to comment https://forums.phpfreaks.com/topic/132093-how-to-get-seconds-work-in-php-pages/#findComment-686892 Share on other sites More sharing options...
The Little Guy Posted November 10, 2008 Share Posted November 10, 2008 Start Here: http://www.tizag.com/ajaxTutorial/ Link to comment https://forums.phpfreaks.com/topic/132093-how-to-get-seconds-work-in-php-pages/#findComment-686894 Share on other sites More sharing options...
flyhoney Posted November 10, 2008 Share Posted November 10, 2008 http://www.java-scripts.net/javascripts/Countdown-Timer.phtml Link to comment https://forums.phpfreaks.com/topic/132093-how-to-get-seconds-work-in-php-pages/#findComment-686897 Share on other sites More sharing options...
premiso Posted November 10, 2008 Share Posted November 10, 2008 PreHypertext Processor is what PHP is so you can't do updating PostHypertext processing with issuing a new request. I understood none! I'm new to PHP ! thank you though Basically PHP cannot actively change data on a page that has been displayed. It only allows manipulation before (pre) the page is loaded not after (post). In order to do a countdown timer you need JavaScript or AJAX. Although for a simple timer, javascript should do just fine, no need to get into the AJAX as that is pretty advanced stuff. Link to comment https://forums.phpfreaks.com/topic/132093-how-to-get-seconds-work-in-php-pages/#findComment-686902 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.