I am struggling to find a solution to a problem where a user visits to page1.php and this page include another page2.php which takes lot of time (~5 minute) to complete all the computation but the results of the computation doesn’t need to be displayed to user. So, its not worth to make the user to wait for its completion.
I am looking for a solution where user should visit page1.php and after some necessary check listing it should display message to the user that his request processing has started. And on the back end page2.php should complete all of its working even if user should have closed window.
check out this link How do I make an asynchronous GET request in PHP?
if you would like to get the result displayed on the request page, use file_get_contents