0

My page consists of a simple form. When the user submits the form a process is instantly executed on the back-end that can take up to 5 minutes to complete.

This process is executed via an include of another php page. However, I do not want the user to have to wait 5 minutes for the page to refresh. Is there a way for the include to do its thing in the background and not require its completion for the remainder of the original page to load?

My current solution is to write the results of the form to the DB and then use a cronjob to check this table which then executes the code. This seems rather unnecessary to me. Is there a better way?

Thank you

user2029890
  • 2,493
  • 6
  • 34
  • 65

0 Answers0