Date: 04/18/00
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #2138 Updated: compile failure of php_mssql.dll"
- Previous message: Faisal Nasim: "Re: [PHP-DEV] Clearing the PHP Output Buffer"
- In reply to: Faisal Nasim: "Re: [PHP-DEV] Clearing the PHP Output Buffer"
- Next in thread: Faisal Nasim: "Re: [PHP-DEV] Clearing the PHP Output Buffer"
- Reply: Faisal Nasim: "Re: [PHP-DEV] Clearing the PHP Output Buffer"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #2138 Updated: compile failure of php_mssql.dll"
- Previous message: Faisal Nasim: "Re: [PHP-DEV] Clearing the PHP Output Buffer"
- In reply to: Faisal Nasim: "Re: [PHP-DEV] Clearing the PHP Output Buffer"
- Next in thread: Faisal Nasim: "Re: [PHP-DEV] Clearing the PHP Output Buffer"
- Reply: Faisal Nasim: "Re: [PHP-DEV] Clearing the PHP Output Buffer"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

