Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Chris Shiflett's Blog:
PHP Magazine December Issue
Dec 02, 2005 @ 13:45:53

In this new post from Chris Shiflett today, he looks at the contents of his latest Guru Speak column in the December issue of the PHP Magazine.

My column, Guru Speak, discusses the interesting things you can do with output buffering.

My favorite output buffering trick isn't really a trick at all - it's a relatively new (PHP 4.3+) function called output_add_rewrite_var(). This function makes the otherwise tedious chore of rewriting URLs very easy. For example, if you decide you want to propagate an auth token to strengthen your session mechanism.

He also three examples of how to use this function to work with rewriting some of the content in your script...

tagged: output_add_rewrite_var magazine output_add_rewrite_var magazine

Link: