Re: [PHP-DEV] Clearing the PHP Output Buffer From: Andrei Zmievski (andrei <email protected>)
Date: 04/18/00

On Tue, 18 Apr 2000, Faisal Nasim wrote:
> Can I count the number of bytes in the output buffer?
> Or perhaps get a whole copy into a scalar?

$res = ob_get_contents();
strlen($res);

> Am I right that PHP doesn't keep the buffered output,
> but the OS does it for PHP?

No, PHP keeps its own output buffer.

-Andrei

Hacker: Any person who derives joy from
        discovering ways to circumvent limitations.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>