On Wed, 1 May 2002, Fredrik Arild Takle wrote: > "Miguel Cruz" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > On Wed, 1 May 2002, Fredrik Arild Takle wrote: > > >>>Wrap into a output buffer. ob_start, ob_get_contents > > > > > > This was neat. > > > I did: > > > > > > ob_start(); > > > $myvar = ob_get_contents(); > > > > > > But it still outputs the page, can I disable that? > > > > Read the output buffering section of the manual. Look for the word flush. > > Correct me if I am wrong, but isn't flush() a function to output the buffer? > What I want to do is to prevent xml_parse() to output the html. > > Hints?
Well, I don't think you actually did what I suggested, but what the hell, here's a fish. http://php.net/ob_end_clean The default behavior is to flush the output buffer to the server. Using the above-referenced function instead will discard it, which is the behavior you want. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php