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 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? 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. Link to comment https://forums.phpfreaks.com/topic/186132-set-execution-time/#findComment-983027 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.