December 11, 200916 yr hello friends, I am a newbie in php and have used 1 include in my page but i get the following erroru can se above the menu here is my menu.php which works fine on the page but i have use aszip handler at the top of the page above all code is it because of this if yes how shold i structure the code? <? // The next lines sets gzip compression on! ob_start("ob_gzhandler"); ?> the error reads Warning: ob_start() [ref.outcontrol]: output handler 'ob_gzhandler' cannot be used twice in /home/neophyte/public_html/menu.php on line 3 this is the gzip i used at the top of page for fast loading and in the body tag i have included the menu.php <?php include("menu.php"); ?>
December 11, 200916 yr Hi, Nice site. However, I guess you have fixed the problem because it doesn't show now.
December 11, 200916 yr Have you seen this in the manual. Note : ob_gzhandler() requires the zlib extension. Note : You cannot use both ob_gzhandler() and zlib.output_compression . Also note that using zlib.output_compression is preferred over ob_gzhandler() . And, these functions must be used BEFORE any output is sent to the Browser - even a single space.
December 11, 200916 yr Author Have you seen this in the manual. Note : ob_gzhandler() requires the zlib extension. Note : You cannot use both ob_gzhandler() and zlib.output_compression . Also note that using zlib.output_compression is preferred over ob_gzhandler() . And, these functions must be used BEFORE any output is sent to the Browser - even a single space. buut i haven usid ob_gzhandler() twice i have just used it once at the top of the page ok thx i solved it actually it say s i cant use gzip handler in my menu.php file
Create an account or sign in to comment