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)? 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 ); 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; } } Link to comment https://forums.phpfreaks.com/topic/227013-pausing-and-resuming-php/#findComment-1171244 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.