note 50691 added to function.ob-gzhandler

From: Date: Mon, 07 Mar 2005 15:17:11 +0000
Subject: note 50691 added to function.ob-gzhandler
Groups: php.notes 
Request: Send a blank email to php-notes+get-86047@lists.php.net to get a copy of this message
It may seem obvious but if you use ob_start("ob_gzhandler"), make sure no content is unintentionally echo'ed before : this could be blank lines before '<?php' or after '?>' tags in included files or even errors. Otherwise, only a part of the content (the content sent after ob_start()) will be compressed, which will confuse the client. Setting compression using zlib.output_compression either in php.ini or in Apache configuration file (with directive php_flag) is safer in this regard. ---- Manual Page -- http://www.php.net/manual/en/function.ob-gzhandler.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50691 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50691&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50691&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50691&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50691&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50691&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50691&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#86047) next »