How can a client send a request to a server just to trigger an execution, where the server immediately sends a response then executes the requested code? Similar to this:
echo 'the execution is starting';
exit;
execution_function(); // <--- is it possible to this function being executed after exit
I want the response to be immediate so the client can do other things while the server executes the request.
exit? The main point of callingexit, as the name implies, is to end the current script. Even if there is an workaround, it'd one of those things you shouldn't do imo.