Log in

View Full Version : gzipping - *This* is the right forum



Bob90
05-16-2007, 07:43 PM
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.

:)

Twey
05-16-2007, 07:53 PM
Just install and enable mod_gzip on your (Apache) server.

Bob90
05-16-2007, 07:58 PM
lol - you changed my title.....


:D

Bob90
05-20-2007, 03:18 PM
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)

mwinter
05-20-2007, 03:38 PM
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?

Bob90
05-20-2007, 05:20 PM
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.