I need to create a script in php, its created but I need that script run in background because take a 30 minutes procesing diferent files. How can create it, I need run in background and the user can navigate across the site and the script keep running. I try calling the script from ajax async funcition but when change the page of the site the script breaks.
Asked
Active
Viewed 66 times
1 Answers
-1
PHP exec("php script.php") can do it.

Amigo Madiq
- 1
- 1
- 4
-
This still waits for script.php to complete. – Peter Apr 08 '18 at 13:18