[Solved] How to add pthreads to MAMP PRO PHP

This question was an XY problem and it didn’t deserve so many downvotes. The real problem how to perform a long running task while returning a response to the client so they don’t feel the app is slow The solution Using PHP-FPM and function fastcgi_finish_request Example <?php // This is the output that we return … Read more