Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.