Home  >  Article  >  Backend Development  >  PHP异步执行有关问题

PHP异步执行有关问题

WBOY
WBOYOriginal
2016-06-13 12:31:361318browse

PHP异步执行问题
PHP在执行exec()方法时,会等待exec方法完全执行完之后才会继续执行其余代码
而exec()会执行很长时间,这样的话页面就会一直处于等待状态,
等exec执行完之后才会刷新,
所以有没有某种方法可以使exec在后台执行的同时,让页面不用等待exec执行完毕就刷新?

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