I am building a WebService, using PHP:
Basically,
- User sends a request to the server, via HTTP Request. 'request.php', ie.
- Server starts php code asynchronously. 'update.php', ie.
- The connection with the user is finished.
- The code 'update.php' is still running, and will finish after some time.
- The code 'update.php' is finished.
The problem is with php running asynchronously some external code.
Is that possible? Is there another way to do it? With shell_exec?
Please, I need insights! An elegant way is preferable.
Thank you!