Home >php教程 >PHP源码 >命令行做无限循环后台进程

命令行做无限循环后台进程

PHP中文网
PHP中文网Original
2016-05-25 17:07:441454browse

        跳至        

0){

		//业务逻辑代码开始



		//业务逻辑代码结束

		--$times;
	}

	//完成设定循环次数之后,重新调用本身继续执行,需要给php shell权限
	$cmd='php '.$doc;
	exec($cmd);

?>

                                   

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
Previous article:获取MongoDB数据大小Next article:PHP生成树