bharu4u2007 Posted June 12, 2007 Share Posted June 12, 2007 Hi All I am very new to PHP . I have to implement a timer in a php page that calls or executes certain code after every 5 minutes till that page is opened. Say i have x.php having few lines of code. Now I have to implement timer in y.php that calls x.php after every 5 minutes. How can I acheive this functionality. Any help would be higly appreciated. Thanks in Advance Bharath Link to comment https://forums.phpfreaks.com/topic/55234-implementing-a-timer-in-php/ Share on other sites More sharing options...
lighton Posted June 12, 2007 Share Posted June 12, 2007 php cant do this, you will need to use javascripts settimeout() function Link to comment https://forums.phpfreaks.com/topic/55234-implementing-a-timer-in-php/#findComment-273006 Share on other sites More sharing options...
bharu4u2007 Posted June 12, 2007 Author Share Posted June 12, 2007 If I cant implement timer in PHP and can acheive by javascript setTimeOut() method ............... The first argument of setTimeout() will be the statement that needs to be executed with certain delay. Then can i write few php lines as the first argument in that method????????? I want to execute php lines rather than java script statements like "alert". Then can i call php from java script??????? Please help Link to comment https://forums.phpfreaks.com/topic/55234-implementing-a-timer-in-php/#findComment-273028 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.