Author |
Message |
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Fri May 24, 2002 6:22 pm (22 years, 5 months ago) |
|
Gzip Encoding has been turned on for the rest of the site (it used to be only on for the forums). Please let me know if you have any problems. |
________________________________
|
|
|
|
Justin
4WebHelp Addict
Joined: 07 Jan 2002
Posts: 1060
|
Posted:
Fri May 24, 2002 6:51 pm (22 years, 5 months ago) |
|
How do you exactly enable it for your own site? |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Fri May 24, 2002 6:51 pm (22 years, 5 months ago) |
|
If PHP has been compiled with zlib, add the following to the top of a PHP file:
Code: | ob_start("ob_gzhandler"); |
|
________________________________
|
|
|
|
Justin
4WebHelp Addict
Joined: 07 Jan 2002
Posts: 1060
|
Posted:
Fri May 24, 2002 6:55 pm (22 years, 5 months ago) |
|
Thanks |
|
|
|
|
Justin
4WebHelp Addict
Joined: 07 Jan 2002
Posts: 1060
|
Posted:
Fri May 24, 2002 8:38 pm (22 years, 5 months ago) |
|
|
|
|
Peter
Team Member
Joined: 09 Jan 2002
Posts: 147
Location: UK
|
Posted:
Fri May 24, 2002 9:10 pm (22 years, 5 months ago) |
|
Andrew wrote: | How does it do that though? |
By compressing the output - in effect it sends a tar.gz file to your browser and your computer unzips the file and displays it.
ob_zhandler has had some problems though and only works for PHP content - a much better option is to use mod_gzip which compresses all of Apache's output |
________________________________ Maple Design - quality web design and custom programming |
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Sat May 25, 2002 8:02 am (22 years, 5 months ago) |
|
But unfortunately mod_gzip isn't installed on our server |
________________________________
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed Oct 02, 2002 6:10 pm (22 years, 1 month ago) |
|
GZIP compression has been off since we moved to 34SP, as 34SP do not have the required modules for GZIP compression. Sorry for the inconvenience. |
________________________________
|
|
|
|
Peter
Team Member
Joined: 09 Jan 2002
Posts: 147
Location: UK
|
Posted:
Wed Oct 02, 2002 6:13 pm (22 years, 1 month ago) |
|
Won't they install it? Slightly higher server load, but much reduced bandwidth costs (and I know which i'd prefer)... |
________________________________ Maple Design - quality web design and custom programming |
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed Oct 02, 2002 6:15 pm (22 years, 1 month ago) |
|
Well I asked them, and they said that they had what was required for it, and I told them they didn't
I then proved to them that zlib is required, and they didn't reply. Will try to get them to install it, but 34SP are very reticent to install anything non standard |
________________________________
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed Oct 02, 2002 6:20 pm (22 years, 1 month ago) |
|
Just talked with Daniel (no, not me, but someone on the 34SP staff ), who said that he wouldn't install zlib, as it requires recompiling PHP, but he will install mod_gzip instead. Will let you know when this has been done. |
________________________________
|
|
|
|
Peter
Team Member
Joined: 09 Jan 2002
Posts: 147
Location: UK
|
Posted:
Wed Oct 02, 2002 6:23 pm (22 years, 1 month ago) |
|
Heck, I thought zlib was a standard part of any linux install. |
________________________________ Maple Design - quality web design and custom programming |
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed Oct 02, 2002 6:25 pm (22 years, 1 month ago) |
|
Apparently not... Unless Plesk disabled it on purpose |
________________________________
|
|
|
|
Peter
Team Member
Joined: 09 Jan 2002
Posts: 147
Location: UK
|
Posted:
Wed Oct 02, 2002 6:28 pm (22 years, 1 month ago) |
|
Ah well... plesk != standard Linux distro |
________________________________ Maple Design - quality web design and custom programming |
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Fri Oct 18, 2002 4:02 pm (22 years ago) |
|
Daniel wrote: | Just talked with Daniel (no, not me, but someone on the 34SP staff ), who said that he wouldn't install zlib, as it requires recompiling PHP, but he will install mod_gzip instead. Will let you know when this has been done. |
Done! Let me know if you encounter any problems |
________________________________
|
|
|
|
|