Re: Buffering and redirecting

From: Date: Mon, 19 Jun 2000 16:10:33 +0000
Subject: Re: Buffering and redirecting
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-2205@lists.php.net to get a copy of this message
PHP 4 includes a new feature called output buffering. It hasn't really been documented yet, but here is the function summary: # php4/ext/standard/output.c void ob_end_clean(void) Clean (erase) the output buffer, and turn off output buffering void ob_end_flush(void) Flush (send) the output buffer, and turn off output buffering string ob_get_contents(void) Return the contents of the output buffer void ob_implicit_flush([int flag]) Turn implicit flush on/off and is equivalent to calling flush() after every output call void ob_start(void) Turn on Output Buffering -Rasmus On 19 Jun 2000 r_ramkumar@123india.com wrote: > hi, > In ASP we have something called response.buffer which doesnot write/send anything to the client > until an explicit flush or normal processing ends or an response.redirect is coded. > i would like to know the equivalent in php. i have to process something and then on successful > completion have to redirect it to some other page. (more details like update a table from the > details obtained from the previous html page.) > how do i do it?? > if i use a header(location ...) it says some output is already sent to the client.. is there > any way to curtail responses from being sent to the client???? > > > ______________________________________________________ > 123India.com - India's Premier Portal > Get your Free Email Account at http://www.123india.com > > > >

« previous php.general (#2205) next »