Home > Article > Backend Development > php returns directly without waiting for the result
php returns directly without waiting for the result
Sometimes we request a php just to trigger an event, but not Regardless of the execution time and results, you need to immediately return a message to the browser and disconnect, for example, return: The task has started! How to achieve this? You can use fastcgi_finish_request() to disconnect from the browser. The specific implementation is as follows:
For more PHP related knowledge, please visit PHP Chinese website!
The above is the detailed content of php returns directly without waiting for the result. For more information, please follow other related articles on the PHP Chinese website!