Results 1 to 6 of 6

Thread: gzipping - *This* is the right forum

  1. #1
    Join Date
    Feb 2007
    Location
    England
    Posts
    254
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default gzipping - *This* is the right forum

    Hello,

    First post to PHP.

    How would I go about gzipping my files to reduce the download. Is it a dynamic server process, or do I have to upload them gzipped myself. In the dark.


  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Just install and enable mod_gzip on your (Apache) server.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Feb 2007
    Location
    England
    Posts
    254
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default

    lol - you changed my title.....



  4. #4
    Join Date
    Feb 2007
    Location
    England
    Posts
    254
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default

    In my defencce there are ways to do this with PHP if mod_gzip is installed and you don't have access to the server (ie hosted account)

  5. #5
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Bob90 View Post
    In my defencce there are ways to do this with PHP if mod_gzip is installed and you don't have access to the server (ie hosted account)
    There are, though the server might need zlib installed if it's not hosted on Windows (PHP/Win has built-in zlib support).

    Did you actually find a suitable solution?
    Mike

  6. #6
    Join Date
    Feb 2007
    Location
    England
    Posts
    254
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default

    There are many options if you search google with "php gzip", but I'm still waiting on the reply from my hosts if they have mod_gzip installed. My host doesn't seem to gzip their own pages, so I'm guessing they're looking in to it, or wondering how to tell me to 'get lost'.

    I like the suggestion on the ilovejackdaniels website (from google search) about using htaccess to prepend php files so all .php are automatically compressed.

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
  •