Menu

HTTP Compression

Victor H.
2010-04-22
2013-05-30
  • Victor H.

    Victor H. - 2010-04-22

    I've snipped the following text from the readme.txt file in the 4.2.3 PGV distribution. (Note, I actually found this in the latest developmental webtrees release and backtracked it to current PGV.)

    I have never heard of this. Is it practiced by any of you, with any success? Is it a bit of outmoded arcania?


    Pages generated by PhpGedView can be large and use up a lot of bandwidth.
    Compression of the data between the server and browser using GZip 
    compression can compress the bandwidth by up to 90% (usually 80% - 90% for 
    PhpGedView that were tested).  Add the following 2 lines to your php.ini file:
        zlib.output_compression On
        zlib.output_compression_level 5
    If you have no access to the php.ini file and you are using Apache, create a 
    blank file named .htaccess (including the dot) and add the following lines to 
    that file  (or add them to an existing .htaccess file and upload the file to 
    your PhpGedView directory.
        php_flag zlib.output_compression On
        php_value zlib.output_compression_level 5
    Some hosts do not allow adding this through .htaccess files, but they may 
    allow you to create a partial php.ini file in your phpGedView directory. To
    this file you would add the same two lines from the php.ini file above:
        zlib.output_compression On
        zlib.output_compression_level 5
    Note: If your host is using mod_gzip or an other compression method, using 
    this technique can cause problems.  Compression will have no effect on 
    browsers that do not support it.  You can test the compression at
    http://leknor.com/code/gziped.ph
    
     
  • Victor H.

    Victor H. - 2010-04-22

    Grr. I guess there were embedded code tags in there. Let me just try a clean paste here. Also - note that the referenced website at the bottom is defunct.


        zlib.output_compression_level 5

    Note: If your host is using mod_gzip or an other compression method, using
    this technique can cause problems.  Compression will have no effect on
    browsers that do not support it.  You can test the compression at
    http://leknor.com/code/gziped.ph

     
  • Stephen Arnold

    Stephen Arnold - 2010-04-23

    Victor
    Needless to say, this is not a new feature and most of us use it.
    http://www.gidnetwork.com/tools/gzip-test.php
    Results for: http://www.MyArnolds.com
    Web page compressed? Yes
    Compression type? gzip
    Size, Markup (bytes) 56,726
    Size, Compressed (bytes) 12,333
    Compression % 78.3

    -Stephen

     
  • Victor H.

    Victor H. - 2010-04-23

    Stephen, thanks for that link. My site is not compressed, so I will give this a try.

     
  • Lester Caine

    Lester Caine - 2010-04-23

    Something else which helps with 'performance' is running one of the PHP accelerators.  I've used eaccelerator for years now, and that cuts processing time considerably.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.