Flush (): refresh 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, always output cache = 'true'): enabled, prerequisite: output_buffer = on
Ob_clear (): refresh
Ob_end_clear (): Close and refresh
Ob_flush (): Output
Ob_end_flush (): Close and Output
Ob_get_contents: Return Cache
Ob_get_clean (): returns the cache and refreshes
Ob_get_flush (): returns the cache and closes
Ob_get_length (): return the length of the cached content.
Ob_get_level (): return the cache nesting level
Ob_get_status (return all = false): return the cache status
Ob_gzhandler (): compresses the output cache and serves as a callback function: ob_start ('ob _ gzhandler ')
Ob_implicit_flush (output refresh = true): When the parameter is true, the cache is automatically refreshed every time the cache output is cached.
Ob_list_handlers (): Lists All functions that are using cache.
Output_add_rewrite_var (variable, value): add the value of the URL rewriter. This function adds a name/value pair to the URL rewriting mechanism. This type of name-value pair will be added to the URL (in the form of a GET parameter) and form (in the form of an input hidden field). When the URL is transparent
You can also add session IDs when session. use_trans_sid is enabled. Absolute URL (http://example.com/) is not overwritten, function behavior is controlled by the url_rewriter.tags php. ini Parameter
Output_add_rewrite_var ('var ', 'value ');
Echo '<a href = "file. php"> rewrite </a>'; // After Rewriting: <a href = "file. php? Var = value "> link </a>
Echo '<a href = "http://example.com"> link2 </a>'; // The absolute address is not overwritten.
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 (): resets the value of the URL rewrite. true is returned successfully.
Output_add_rewrite_var ('var ', 'value ');
Echo '<a href = "file. php"> not overwritten </a> ';
Output_reset_rewrite_vars (); // Reset
Echo '<a href = "file. php"> not overwritten </a>'; // reset, and the address is not overwritten