How To Compress Pages? +rep

Discussion in 'Programming' started by James12513, Apr 10, 2007.

  1. #1
    I've heard that you can compress pages to make your website faster.
    With gzip?

    The only thin is, I've no idea how to compress a page and will it be exactly the same after I have compressed it?

    my website is uploadwiz.com could someone please telll me how I could compress these pages :)

    +rep :p
     
    James12513, Apr 10, 2007 IP
  2. Will.Spencer

    Will.Spencer NetBuilder

    Messages:
    14,789
    Likes Received:
    1,040
    Best Answers:
    0
    Trophy Points:
    375
    #2
    Will.Spencer, Apr 10, 2007 IP
    James12513 likes this.
  3. James12513

    James12513 Well-Known Member

    Messages:
    1,149
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    138
    #3
    ok thanks, I'll get someone to implement it for me :)
     
    James12513, Apr 10, 2007 IP
  4. Raithe

    Raithe Well-Known Member

    Messages:
    1,923
    Likes Received:
    177
    Best Answers:
    0
    Trophy Points:
    175
    #4
    <?php
    ob_start( 'ob_gzhandler' );
    ?>
     
    Raithe, Apr 10, 2007 IP
  5. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #5
    you can do it with Code yes, but you can also do it with your WebServer. If the client "accepts" the compression type - then the webserver will send the data compressed.
     
    ccoonen, Apr 10, 2007 IP