Re: Not a question of how, but a question of why
| From: | Jesper Juhl | Date: | Thu, 27 Jul 2000 15:27:00 +0000 |
| Subject: | Re: Not a question of how, but a question of why | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-8566@lists.php.net to get a copy of this message | ||
The output buffering functions you are looking for are listed below. You
can also enable output buffering permanently in the php.ini file by
setting
output_buffering = On ;
That will give you the same behaviour as ColdFusion, but will slow PHP's
output layer a bit.
void ob_start(void);
Turn on Output Buffering
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
Best regards,
Jesper Juhl
juhl@eisenstein.dk
> That's exactly it. In php4 you can buffer the page, which allows
> you to do the same thing, but needs a few specific calls for each
> page (which i can't remember of course)...
> -Gfunk
> [-= Visit my website! http://www.gfunk007.com/ - ICQ:74477509
> =-]
> ----- Original Message -----
> From: Joe Sheble a.k.a. Wizaerd <wizaerd@wizaerd.com>
> To: General PHP LIst <php-general@lists.php.net>
> Sent: Thursday, July 27, 2000 11:53 PM
> Subject: [PHP] Not a question of how, but a question of why