d.shankar Posted July 17, 2009 Share Posted July 17, 2009 Hi freaks ! This topic needs a bit of patience & understanding to read , Hope there are some avengers to help me out. I have a single PHP file which has some 2 different operations processing one after the other. Both the two are a bit time consuming operations this is how it goes (the actual process) PHP code initializes -> Process op 1 -> Process op 2 -> PHP Code ends [Acknowledge the user] What's the problem is that, The end user need to wait after the two huge operations... only after the completion he gets acknowledged of "processing over" message. I need to design a system like this so i need your help PHP code initializes -> acknowledge user -> PHP code stops -> run process op1 & process op2 at background (seperately). Hope u guys can throw some light Quote Link to comment https://forums.phpfreaks.com/topic/166290-distribute-executions-in-php/ Share on other sites More sharing options...
HPWebSolutions Posted July 21, 2009 Share Posted July 21, 2009 One potential solution is that you could use AJAX to call each process separately, notifying the user that the processes have been started using some javascript. You could even use a javascript progress bar to update the user on the status of the job. It would be somewhat complicated to do this, but not impossible. Quote Link to comment https://forums.phpfreaks.com/topic/166290-distribute-executions-in-php/#findComment-879275 Share on other sites More sharing options...
Prismatic Posted July 21, 2009 Share Posted July 21, 2009 You want pcntl_fork() Quote Link to comment https://forums.phpfreaks.com/topic/166290-distribute-executions-in-php/#findComment-879276 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.