joecooper Posted March 10, 2006 Share Posted March 10, 2006 what code would i need to pause a script for 48 hours then when the time is up, continue the script? Quote Link to comment https://forums.phpfreaks.com/topic/4641-pause-a-script/ Share on other sites More sharing options...
CyrusTh3VIrus Posted March 10, 2006 Share Posted March 10, 2006 You can use sleep(); like this:while (true) { // Do something here sleep(seconds);}and replace sleep(seconds); with how many seconds you would like to pause the script Quote Link to comment https://forums.phpfreaks.com/topic/4641-pause-a-script/#findComment-16251 Share on other sites More sharing options...
txmedic03 Posted March 11, 2006 Share Posted March 11, 2006 I have got to know, what on earth would make you want to pause a script for 48 hours? Secondly pausing a script for 48 hours would exceed the default maximum execution time of 30 seconds so you either need to raise the limit or create a persistent connection. Quote Link to comment https://forums.phpfreaks.com/topic/4641-pause-a-script/#findComment-16286 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.