Home  >  Article  >  Backend Development  >  PHP loop execution method communication detection in linux nginx environment

PHP loop execution method communication detection in linux nginx environment

WBOY
WBOYOriginal
2016-10-22 00:00:211063browse

I want PHP to execute a method in a loop to detect communication until the client returns true to stop the loop, otherwise it will continue to loop communication 10 times. What is the best way to implement this type of loop execution method? Because thousands of checks are required at the same time, it may be resource-intensive.

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