// Initialize the session
session_start ();
// Add url rewrite value
output_add_rewrite_var ('var', 'value');
// insert a connection
echo '<a href="file.php" navigator"> link </a>';
// send the buffer data
ob_flush ();
// Reset the value of url rewrite
output_reset_rewrite_vars ();
// insert a connection
echo '<a href="file.php"> link </a>'; / *
* /
print_r (ob_list_handlers ()); // List the output handles used and output the default output handler
ob_end_flush (); // send the buffer data and close the buffer
ob_start ("ob_gzhandler"); // Open the buffer and use ob_gzhandler
print_r (ob_list_handlers ()); // List the output handle, the output ob_gzhandler
ob_end_flush (); // send the buffer data and close the buffer
ob_start (create_function ('$ string', 'return $ string;')); // Open the buffer
print_r (ob_list_handlers ()); // List the output handles used and output the default output handler
ob_end_flush (); // send the buffer data and close the buffer / *
* /
if (ob_get_level () == 0) / / determine the buffer level, if there is no activity buffer
ob_start (); / / Open the buffer
for ($ i = 0; $ i <10; $ i ++) // Loop through the actions
{
echo "<br> line to show."; // output content
echo str_pad ('', 4096). "n"; // Output the generated string
ob_flush (); / / send buffer data
flush (); // refresh the buffer
sleep (1); // pause for 1 second
}
echo "done."; / / Output operation completed mark
ob_end_flush (); // send the buffer data, and close the buffer
?>