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

php基础,该怎么解决

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 13:05:44
Original
867 people have browsed it

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();
    }
}
?>

Copy after login

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

------解决方案--------------------
哪没懂?
------解决方案--------------------
这是一个长连接+心跳,具体是用于什么就要问你的代码了
Related labels:
Statement of this Website
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template