PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
djmaze
Subject Matter Expert


Joined: May 15, 2004
Posts: 689
Location: http://tinyurl.com/5z8dmv

PostPosted: Mon Aug 16, 2010 4:49 pm Reply with quote Back to top

Palbin wrote:
I don't really now what I am talking about in terms of server configuration, but I would refer back to djmaze's post.

djmaze wrote:
#1 PHP.INI: zlib.output_compression = Off
#2 Apache: disable mod_deflate

if it worked with #1: good
if it worked with #2: bad, you must configure apache properly


There is a problem with your configuration somewhere, but someone smarter than me will have to comment on that.


Simple, when zlib compression is on it creates a buffer aka ob_start()
When you use ob_start('ob_gzhandler') the content gets compressed twice!

Testing for ob_get_level() will result in 1 and ob_end_clean() will not stop this.
Instead you can do this in your php script
Code:
ini_set('zlib.output_compression', 0); # double compression

Or use the above mentioned "zlib.output_compression = Off" in .htaccess or just in php.ini

A browser just deflate's once not more....
View user's profile Send private message Visit poster's website
dad7732
RavenNuke(tm) Development Team


Joined: Mar 18, 2007
Posts: 1191

PostPosted: Mon Aug 16, 2010 5:25 pm Reply with quote Back to top

Makes sense to default it to zlib.compression = OFF and to turn it ON you have know why and knowledgeable enough, otherwise don't fix it if it ain't broke. Thanks for that lesson.

Cheers
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum