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 Quote Link to comment 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 Quote Link to comment 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.