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

php基础,该怎么解决

WBOY
Release: 2016-06-13 10:57:24
Original
886 people have browsed it

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

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

------解决方案--------------------
哪没懂?
------解决方案--------------------
这是一个长连接+心跳,具体是用于什么就要问你的代码了
Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template