Initialize session
Session_Start ();
Add a value for URL rewrite
Output_add_rewrite_var (' var ', ' value ');
Insert a connection
echo ' link ';
Send buffer data
Ob_flush ();
Reset the value of the URL rewrite
Output_reset_rewrite_vars ();
Insert a connection
echo ' link ';
/*
*/
Print_r (Ob_list_handlers ());//lists the output handles used, and outputs the default output handler
Ob_end_flush (); Send buffer data and close buffer
Ob_start ("Ob_gzhandler"); Open the buffer and use the Ob_gzhandler
Print_r (Ob_list_handlers ()); Lists the output handles and outputs the Ob_gzhandler
Ob_end_flush (); Send buffer data and close buffer
Ob_start (create_function (' $string ', ' return $string; ')); Open buffer
Print_r (Ob_list_handlers ()); Lists the output handles that are used, and outputs the default output handler
Ob_end_flush (); Send buffer data and close buffer
/*
*/
if (Ob_get_level () ==0)//Determine the buffer level, if there is no active buffer
Ob_start (); Open buffer
for ($i =0; $i <10; $i + +)//Loop execution
{
echo "
Line to show. "; Output content
Echo Str_pad (", 4096)." n "; Output-generated string
Ob_flush (); Send buffer data
Flush (); Flush buffers
Sleep (1); Pause for 1 seconds
}
echo "done."; Output Operation completion Tag
Ob_end_flush (); Send buffer data, and close buffer
?>
http://www.bkjia.com/PHPjc/631708.html www.bkjia.com true http://www.bkjia.com/PHPjc/631708.html techarticle //Initialize session session_start ();//Add URL rewrite value output_add_rewrite_var (' var ', ' value ');//Insert a connection echo ' a href= file.php tutorial link/a '; Send buffer data ...