+ Reply to Thread
Results 1 to 2 of 2

Thread: Enabling gZIP

  1. #1
    netutgamer's Avatar
    netutgamer is offline Senior Member
    Join Date
    Feb 2006
    Age
    30
    Posts
    379

    Default Enabling gZIP

    Ok I've tried a couple of methods of enabling gZip and I can't seem to get either of them to work. Can anyone lend a hand who's already tried this?

    I'm testing using the checker here: http://www.gidnetwork.com/tools/gzip-test.php and using Google's page analyser plug-in to firebug.

    I've tried the method shown here (both PHP and .htaccess) : http://betterexplained.com/articles/...p-compression/

    and the method here : http://www.desilva.biz/php/zlib.html

    and this one : http://www.jhuskisson.com/articles/a...e-via-htaccess

    *scratches head*

    None of them seem to be compressing my content. Any advice?

  2. #2
    themoron's Avatar
    themoron is offline Senior Member
    Join Date
    Jun 2004
    Age
    31
    Posts
    1,434

    Default Re: Enabling gZIP

    Edit your .htaccess file and add these lines at the top

    Code:
    php_value output_buffering on
    php_flag zlib.output_compression on
    php_value zlib.output_compression_level 5

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts