There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot browser bsod computer cpu crash css dell desktop driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware missing monitor network networking outlook outlook 2003 outlook 2007 outlook express password popups problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Speed up your site using zlib compression (PHP)


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
nonane's Avatar
Junior Member with 26 posts.
 
Join Date: Mar 2005
Location: Lexington, SC
Experience: Advanced
18-Mar-2005, 03:44 PM #1
Speed up your site using zlib compression (PHP)
Add this to your ".htaccess" file in your public_html/ directory.

Code:
<FilesMatch "\.(php|html?)$">
php_value zlib.output_compression 4000
</FilesMatch>
BEWARE:
If you use any type of downloader script, that outputs a header length, THIS WILL BREAK YOUR DOWNLOADER. Also, you may want to tune the value down a bit. I personally use 4000 because it works well for my site, and I don't have an downloader scripts, and I have very little images. This all depends on the power of your server, it may work better at a higher value. Play with it a bit, this may help.
__________________
Data-Storm Industries (Staff/Programmer)

nonane.org / Laptop Stats
Squashman's Avatar
Distinguished Member with 12,474 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
18-Mar-2005, 03:54 PM #2
Very interesting. I have a Photo Gallery, do you think it will help it load faster because I only get 384kbps upload on by broadband.

I like your DataStorm website.
nonane's Avatar
Junior Member with 26 posts.
 
Join Date: Mar 2005
Location: Lexington, SC
Experience: Advanced
18-Mar-2005, 03:59 PM #3
It may indeed help your DISPLAYED content download faster, but as for file downloading, there's nothing to help that unless you use a download manager such as GetRight, or Download Accelerator.
Squashman's Avatar
Distinguished Member with 12,474 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
18-Mar-2005, 04:08 PM #4
So you just need to put it in the root directory of your website and it helps with all other directories including cgi-bin or do I have to put the .htaccess file in every directory. I would assume every directory that I want to speed up.
nonane's Avatar
Junior Member with 26 posts.
 
Join Date: Mar 2005
Location: Lexington, SC
Experience: Advanced
18-Mar-2005, 04:10 PM #5
Actually, the great part is you only have to put it in the root directory of your site, all directories under it are affected.
Squashman's Avatar
Distinguished Member with 12,474 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
19-Mar-2005, 09:15 AM #6
Quote:
Originally Posted by nonane
Actually, the great part is you only have to put it in the root directory of your site, all directories under it are affected.
But is cgi-gin actually cosidered to be under your root html directory? Because they actually sit at the save level in my directory structure.

/home/username/cgi-bin
/home/username/www
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 12:10 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.