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

php基础,该怎么解决

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 13:05:44844browse

php基础

PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->
<?php ob_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
Previous article: php json解决思路 Next article: 请好手帮忙写个正则