Search Results
This function starts the 'URL-Rewriter' output buffer handler if it is not active, stores the name and value parameters, and when the buffer is flushed rewrites the URL s and forms based on the applicable ini settings. Subsequent calls to this function will store all additional name/value pairs until the handler is turned off.
The output_add_rewrite_var() function adds a variable to URLs in HTML tags and hidden inputs to forms. The tags which are affected depend on the configuration of the url_rewriter.tags setting in php.ini.
Jul 12, 2025 · The output_add_rewrite_var () function is an inbuilt function in PHP that is used as an output control functions to add values of URL rewriter. This function adds another name or value pair to the URL rewrite mechanism.
This function's behaviour is controlled by the url_rewriter.tags and url_rewriter.hosts php.ini parameters. Note: Calling this function will implicitly start output buffering if it is not active already.
Execute output_add_rewrite_var Online. Info and examples on output_add_rewrite_var PHP Function from Output Buffering Control - Affecting PHP's Behaviour
Before PHP 7.1.0, rewrite vars set by output_add_rewrite_var()use the same Session module trans sid output buffer. Since PHP 7.1.0, dedicated output buffer is used, url_rewriter.tagsis used solely for output functions, url_rewriter.hostsis added.
This function adds another name/value pair to the URL rewrite mechanism. The name and value will be added to URLs (as GET parameter) and forms (as hidden input fields) the same way as the session ID when transparent URL rewriting is enabled with session.use_trans_sid.
