Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
djmaze
Subject Matter Expert



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

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

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: 1242

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

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    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©