Jump to content

Distribute Executions in PHP


d.shankar

Recommended Posts

Hi freaks ! :D

 

This topic needs a bit of patience & understanding to read :D , 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  :shrug:

 

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 :D

 

 

Link to comment
https://forums.phpfreaks.com/topic/166290-distribute-executions-in-php/
Share on other sites

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.