src/Mouf/Composer/ChunckedUtils.php
public static function init() {
		header("Transfer-Encoding: chunked");
		@apache_setenv('no-gzip', 1);
		@ini_set('zlib.output_compression', 0);
		@ini_set('implicit_flush', 1);
		for ($i = 0; $i < ob_get_level(); $i++)  ob_end_flush();
		ob_implicit_flush(1); flush();
		
		$pad = str_pad('',4096);
		echo dechex(strlen($pad))."\r\n";
		echo $pad;
		echo "\r\n";
	}
public static function init() {
		header("Transfer-Encoding: chunked");
		@apache_setenv('no-gzip', 1);
		@ini_set('zlib.output_compression', 0);
		@ini_set('implicit_flush', 1);
		for ($i = 0; $i < ob_get_level(); $i++)  ob_end_flush();
		ob_implicit_flush(1); flush();
		
		$pad = str_pad('',4096);
		echo dechex(strlen($pad))."\r\n";
		echo $pad;
		echo "\r\n";
	}
public static function init ( ) { header ( "Transfer-Encoding: chunked" ) ; @ apache_setenv ( 'no-gzip' , 1 ) ; @ ini_set ( 'zlib.output_compression' , 0 ) ; @ ini_set ( 'implicit_flush' , 1 ) ; for ( $ i = 0 ; $ i < ob_get_level ( ) ; $ i ++ ) ob_end_flush ( ) ; ob_implicit_flush ( 1 ) ; flush ( ) ; $ pad = str_pad ( '' , 4096 ) ; echo dechex ( strlen ( $ pad ) ) . "\r\n" ; echo $ pad ; echo "\r\n" ; }
Sends the "chuncked" header to the browser announcing we will be sending chuncks.
Sends the chuncked header to the browser announcing we will be sending chuncks .