Home  >  Article  >  Backend Development  >  php基础,该怎么解决

php基础,该怎么解决

WBOY
WBOYOriginal
2016-06-13 10:57:24856browse

php基础

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?phpob_start ();include_once 'config.php';include_once 'func.php';ignore_user_abort(true);$arr = '';$max = 1024;for($i =0;$i<$max;$i++){    $arr .= $i;}echo $arr;while(true){    if(!connection_aborted()){        echo ' ';        ob_flush();        flush();        sleep(1);    }else{        include_once 'logout.php';        exit();    }}?>

这段代码没看懂什么意思,求助大神解释下。

------解决方案--------------------
哪没懂?
------解决方案--------------------
这是一个长连接+心跳,具体是用于什么就要问你的代码了
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