MasterACE14 Posted June 7, 2007 Share Posted June 7, 2007 Question 1) Is it possible make some coding run/execute for a certain amount of time. eg, make the message "Good Morning" display for 3 hours. Question 2) Is it possible to make some coding run at set intervals without using cron jobs? eg, making the word "Hello" come up every 10 minutes. are these 2 tasks possible? Regards ACE Quote Link to comment https://forums.phpfreaks.com/topic/54547-2-time-involved-questions/ Share on other sites More sharing options...
btherl Posted June 7, 2007 Share Posted June 7, 2007 Do you mean something like this? while (true) { print "Hello\n"; sleep(60*10); } Quote Link to comment https://forums.phpfreaks.com/topic/54547-2-time-involved-questions/#findComment-269810 Share on other sites More sharing options...
MasterACE14 Posted June 7, 2007 Author Share Posted June 7, 2007 depends on what that does lol, I'm not too familar with the while statement sorry. Quote Link to comment https://forums.phpfreaks.com/topic/54547-2-time-involved-questions/#findComment-269813 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.