Home  >  Article  >  Backend Development  >  php returns directly without waiting for the result

php returns directly without waiting for the result

angryTom
angryTomOriginal
2019-10-29 16:39:553993browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn