RE: [PHP-DEV] Can PHP code access (as a string) the accumulating output stream?

From: Date: Thu, 11 Jan 2001 14:13:06 +0000
Subject: RE: [PHP-DEV] Can PHP code access (as a string) the accumulating output stream?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-43777@lists.php.net to get a copy of this message
Have a look at Zeev Suraski's article on output buffering over at Zend.com, he discusses just this: http://www.zend.com/zend/art/buffering.php (Requires a relatively new version of PHP though.) Sean Bright > -----Original Message----- > From: Moorhouse-Aires Family [mailto:antico@paradise.net.nz] > Sent: Thursday, January 11, 2001 9:19 AM > To: php-dev@lists.php.net > Subject: [PHP-DEV] Can PHP code access (as a string) the accumulating > output stream? > > > Hello, PHP gurus. > > This is a long shot. I am wanting to know if there is a > method available > from within PHP code, by which I can fetch (in a string) the current > contents of the HTML output stream. The ideal and simplest > implementation > of this idea would be a hypothetical system function > getOutput(), which > would return the current serialised output as a string. > > The statement : $strOutput = getOutput(); > would return whatever was in the output buffer at the time. > This would be a > very powerful facility if available. I have a particular > application in > mind where I want to use it. > > I would be very grateful if anyone could answer my question. > > Cheers! > > Mark Moorhouse > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.dev (#43777) next »