I have a form that sends a simple http post to a PHP page. The PHP code processes the post which results in pulling a JSON string from a url, parsing it, and then sending a bunch of emails. All the code is on one page and works as intended.
The thing that bugs me is waiting for all the emails to get sent, and finally receiving the HTTP post response. What I'd like to do is separate the initial post from the JSON string processing. In other words, close the post session immediately, getting a simple "Done" and let the PHP JSON-processing code do its thing.
I'm new at PHP so any advice will be helpful.