livewirerules Posted December 23, 2009 Share Posted December 23, 2009 is it possible to set a execution time in php? I have a if / else statement with some conditions. I want to execute one condition and the other after about 15 seconds, so on.... is it possible? if yes can someone please explain. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/186132-set-execution-time/ Share on other sites More sharing options...
bowett Posted December 23, 2009 Share Posted December 23, 2009 Have you looked at the sleep function: http://php.net/manual/en/function.sleep.php Does that sound like it might do what you want? Quote Link to comment https://forums.phpfreaks.com/topic/186132-set-execution-time/#findComment-982982 Share on other sites More sharing options...
venkyphp Posted December 23, 2009 Share Posted December 23, 2009 you can use sleep function to execute one php function after some execution time .. sleep(20).. value will be in seconds. Quote Link to comment https://forums.phpfreaks.com/topic/186132-set-execution-time/#findComment-983027 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.