Re: XML to HTML?!

From: Date: Thu, 02 May 2002 22:12:03 +0000
Subject: Re: XML to HTML?!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-95780@lists.php.net to get a copy of this message
On Wed, 1 May 2002, Fredrik Arild Takle wrote: > "Miguel Cruz" <mnc@stoic.net> wrote in message > news:Pine.LNX.4.44.0205011207520.3512-100000@stoic.net... > > 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

« previous php.general (#95780) next »