dyip Posted February 7, 2009 Share Posted February 7, 2009 Hi I'm trying to create a PHP script that can pause, show it's progress/results and then resume. Reason for this is because if i have a long script that consumes a lot of resources, I would like to pause it to lighten the load and it would be helpful to show the results thus far too. I've seen people use ajax or sessions( i.e. BigDump) but I have no idea how to do this. Any help would be be appreciated! Thanks in advance, dyip Link to comment https://forums.phpfreaks.com/topic/144259-pause-php-script-show-progress-resume/ Share on other sites More sharing options...
BloodyMind Posted February 7, 2009 Share Posted February 7, 2009 you can use the function sleep() dig it in the manual Link to comment https://forums.phpfreaks.com/topic/144259-pause-php-script-show-progress-resume/#findComment-757070 Share on other sites More sharing options...
iversonm Posted February 8, 2009 Share Posted February 8, 2009 you could call the pages using javascript. as for doing it with php it doesnt work like that because php is server side. saying sleep wont show the results only make the load time longer Link to comment https://forums.phpfreaks.com/topic/144259-pause-php-script-show-progress-resume/#findComment-757117 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.