[thelist] PHP : Redirecting output to a string

Jacob Aust mail_lists at jakesdiner.com
Wed Nov 27 21:10:03 CST 2002

Thanks Mark and R.

It looks like I'm actually starting to get a handle on this PHP coding


On 11/27/02 5:11 PM, "Mike Migurski" <mike at saturn5.com> wrote:

>> OK...I did a little more poking around and found ob_start() and
>> ob_get_contents(). I think I can use these functions to handle what I
>> need. It seems I can turn on output buffering with ob_start() and then
>> call my functions to write the HTML data to the buffer. Then I set do
>> something like $body = ob_get_contents(). Then ob_end_clean() to erase
>> the buffer. $body then contains my HTML for the email. Seems simple
>> enough.
>> Anyone have any input on this?
> I was about to write a reponse when you posted this. Yes, do that. Output
> buffering good.
> ---------------------------------------------------------------------
> michal migurski- contact info and pgp key:
>                http://www.saturn5.com/mike/contact.html
>               "Freedom! Horrible, horrible freedom!"

More information about the thelist mailing list