note 14356 deleted from function.header by jimw
| From: | jimw@php.net | Date: | Wed, 31 Oct 2001 22:07:40 +0000 |
| Subject: | note 14356 deleted from function.header by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-19802@lists.php.net to get a copy of this message | ||
i've find solution by myself :-)
last code was not perfect, this works fine:
----
<?php
ob_start();
?>
<!--- html page content here --->
<?php
header("Content-Length: ".ob_get_length());
ob_end_flush();
?>
----
maybe you need to add the header length size in the page length to let cache servers work correctly.
i've find the code in the manual page:
http://www.php.net/manual/en/function.ob-get-length.php
bye, albero.