flush(): Flush the output program cache for($i = 0; $i < 5; $i++){
echo str_repeat(“\n”, 5000); echo $i; sleep(1); flush(); }
ob_start(callback function, limited length, output cache =‘true’) : on, if output_buffer = on ob_clear () : Refresh ob_end_clear() : Close and refresh ob_flush () : output ob_end_flush() : Close and output
ob_get_contents: Returns the cache ob_get_clean() : Return the cache and refresh ob_get_flush() : Returns the cache and closes it ob_get_length() : Returns the cache content length ob_get_level() : Returns the cache nesting level ob_get_status(returns all =false) : Returns the cache state
ob_gzhandler() : Compressed output cache, used as callback function: ob_start(‘ob_gzhandler’) ob_implicit_flush(output refresh =true) : When the parameter is true, the cache output will be automatically refreshed each time ob_list_handlers() : Lists all functions that are using caching.
output_add_rewrite_var(variable, value) : This function that adds the URL rewrite adds a name/value pair to the URL rewrite mechanism. This name-value pair will be added to URL (as an GET parameter) and the form (as an input hidden field) when transparent URL
Overrides can also be added to session ID when enabled with session.use_ES100en_ES101en. Absolute URL (http: / / example com /) is not be rewritten, function behavior by url_rewriter. tags php. ini parameter control
output_add_rewrite_var(‘var’, ‘value’); echo ’ < a href=“file.php” > Can be rewritten < /a > ’; // After rewriting: < a href=“file.php?var=value” > link < /a > echo ’ < a href=“http://example.com” > link2 < /a > ’; // Absolute addresses are not overridden echo ’ < form action=“script.php” method=“post” > < /form > ’; // After rewriting: < form action=“script.php” method=“post” > < input type=“hidden” name=“var” value=“value” / > < /form >
output_reset_rewrite_vars() : Reset the value of the URL rewriter to return true successfully
output_add_rewrite_var(‘var’, ‘value’); echo ’ < a href=“file.php” > Do not be rewritten < /a > ’; output_reset_rewrite_vars (); / / reset echo ’ < a href=“file.php” > Do not be rewritten < /a > ’; // Reset, address is not rewritten