25.08.2016, 14:29
Quote:
|
PHP is server-sided so you need to combine PHP and Javascript.
Use PHP to show your basic page. Then implement a Javascript timer that ticks every second. If the timer completes, you will need to implement a Ajax function that is called when the timer finished. This Ajax script should call a PHP script / page and so you can get data without refreshing or loading a page. More info: search in ****** for 'PHP and Ajax' But if you simply wants to call a new page or change/add/remove content after few seconds, you can easily use a Javascript timer without Ajax or PHP. The only one timer i know is these one type of timers: http://stackoverflow.com/questions/8...op-a-timer-php This type of timer is created to count the time that is elapsed during doing some functions |


