note 66694 deleted from function.header by tularis

From: Date: Fri, 20 Apr 2007 14:29:55 +0000
Subject: note 66694 deleted from function.header by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-125676@lists.php.net to get a copy of this message
Note Submitter: dotmg at wikkàwiki dot ORG ---- <?php header('Content-Length: ', $size); ?> is not a so good idea. If the server has session.use_transient_sid enabled, you cannot know the correct size of output sent to client 'coz urls will be suffixed with strings like '?PHPSESSID=somemd5hash'. If you don't use this header, you have no problem because PHP will use Transfer-encoding: chuncked. <?php header('Vary: Content-language'); ?> may be ignored if you use ob_gzhandler.

« previous php.notes (#125676) next »