jonsamwell Posted March 12, 2009 Share Posted March 12, 2009 Hi, I have some code that takes a while to process so i don't want to wait while the script executes to continue with code on the caller code. is there a way to start a script and continue on without waiting for the call stack to return to the caller once the called code has completed? i.e. mulit thread but without an end return?? sorry if this is confussion see below code for visual explanation //some code //call long process $longscript = new longscript(); $longscript->process; //this may take minutes echo 'something'; /* how can i call the above code and imediately go to this statement without waiting for the * longprocess to complete? */ So its threading but not as i know you can't do that in php yet. Any ideas? Jon Link to comment https://forums.phpfreaks.com/topic/149143-start-independent-php-code-from-with-php-code/ Share on other sites More sharing options...
medaswho Posted March 12, 2009 Share Posted March 12, 2009 try this http://www.phpclasses.org/browse/package/3953.html Link to comment https://forums.phpfreaks.com/topic/149143-start-independent-php-code-from-with-php-code/#findComment-783136 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.