ankhmor Posted February 8, 2011 Share Posted February 8, 2011 I was wondering if there was any way that I could pause a php script and then restart it with USER INPUT? Kind of like when you are copying a file to a folder with the same file name and Windows asks you if you want to copy it there. I was also thinking that if above isn't possible, would it be possible to start a curl session in one script (say index.php) and then continue it in another (say curl.php)? Quote Link to comment https://forums.phpfreaks.com/topic/227013-pausing-and-resuming-php/ Share on other sites More sharing options...
wigpip Posted February 8, 2011 Share Posted February 8, 2011 first function that comes to mind is sleep(int $seconds ); Quote Link to comment https://forums.phpfreaks.com/topic/227013-pausing-and-resuming-php/#findComment-1171241 Share on other sites More sharing options...
wigpip Posted February 8, 2011 Share Posted February 8, 2011 in some sort of statement if(isset($no_user_input)) { sleep(1000); } else { do something here; } } Quote Link to comment https://forums.phpfreaks.com/topic/227013-pausing-and-resuming-php/#findComment-1171244 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.