Process PHP Script in Background while HTML Output & ob_start(); Fix

This is how to display HTML or send a HTTP response with PHP while processing a PHP script in the background, using ‘ob_start‘ output buffering. Here is the code that I am using; ignore_user_abort(true); set_time_limit(0); ob_start(); echo ‘<!DOCTYPE html><body>If this works, you are taken to this page before the rest of the script finishes. Enjoy!</body></html>’; […]