note 13715 added to function.ob-get-length.php
| From: | webmaster at crescentart dot com | Date: | Fri, 29 Jun 2001 17:58:42 +0000 |
| Subject: | note 13715 added to function.ob-get-length.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14770@lists.php.net to get a copy of this message | ||
Here is an easy way to get the header Content-Lenght.
<?
ob_start();
?>
Put HTML tags.
<?
$size=ob_get_length();
header("Content-Length: $size");
ob_end_flush();
?>
http://www.php.net/manual/en/function.ob-get-length.php