from what i understand:
"using zlib.output_compression is preferred over ob_gzhandler()"
i used ob_gzhandler() in my website but i want to have more options and more compression on my website..
so i started to read a little about enabling zlib using my HTAccess file.. this is my current htaccess file:
ErrorDocument 404 /ron/404error.php
and yes i check it and it does work (means i can add htaccess to my hosting)..
this is what i get when i use phpinfo() function on my server:
php version: 4.4.9
ZLib ZLib Support: enabled
Compiled Version: 1.1.4
Linked Version: 1.2.3
zlib.output_compression: Off
zlib.output_compression_level: -1
zlib.output_handler: no value
HTTP_ACCEPT_ENCODING: gzip,deflate
HTTP_ACCEPT_LANGUAGE: en-us,en;q=0.5
what i want is to add a gzip compression with level 2 to all files on my website (including all images, css, html, php, js files)
so from what i understan i need to add this to my htaccess:
zlib.output_compression = On
zlib.output_compression_level = 2
but when i add this to the htaccess i get this problem:
[
img842.imageshack.us...]
also does this code works for all files?