Ejemplo n.º 1
0
 /**
  * 开始分开输出
  *
  * @param int $time_limit
  */
 public static function chunk_start($time_limit = 0)
 {
     if (true === HttpIO::$IS_CHUNK_START) {
         return;
     }
     HttpIO::$IS_CHUNK_START = true;
     set_time_limit($time_limit);
     Core::close_buffers(false);
     header('Content-Type: text/plain');
     echo str_pad('', 1024), "\r\n";
     flush();
 }