GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 05-Mar-2003, 21:41
jrobbio's Avatar
jrobbio jrobbio is offline
Regular Member
 
Join Date: Jan 2003
Location: Loughborough, England
Posts: 840
jrobbio will become famous soon enough

How I sorted my website compression problem


After looking on Desilva's website about page compression (http://www.desilva.biz/php/zlib.html) I got into the idea of doing it on my own site. Making this work on a single php page was easy peasy but, I have recently had quite a time trying to get mod_gzip compression to work on my website as a whole rather than having to place this at the top of commonly used pages:
PHP Code:

<?php
ob_start("ob_gzhandler");
?>



Since my domain is hosted virtually, I do not have access to the php.ini file nor the http.conf file in order to manipulate the settings. I quickly learnt that my best hope was to place the correct command into the .htaccess file. This wasn't as easy as it would sound as I had no idea how to do this. Days of searching on google and trying to quickly learn how it all worked ensued until I finally found the command I was looking for:
zlib.output_compression on

However, those in the know will probably be aware that this wouldn't work since it had a bit missing although just this command is sufficient for the php.ini. Since I knew the command I could refine my search to zlib.output_compression and .htaccess. I did finally find it or I wouldn't be posting this and it is:

php_flag zlib.output_compression on

And that is it...I did not set a compression level yet since I am happy that it is just compressed for the moment. Maybe I'll experiment that later on....
 
 

Recent GIDBlogProblems with the Navy (Chiefs) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with php5 cgi installation fab13 Apache Web Server Forum 3 19-Nov-2003 10:11
unwanted scrollbar problem kelly001 Web Design Forum 3 24-Oct-2003 11:44
Why doesnt my website open to the homepage? rhino1616 Web Design Forum 6 12-Aug-2003 07:55
Why does javascript cause sound problem to website rhino1616 Web Design Forum 8 06-May-2003 17:25
website submission/indexing question? rhino1616 Web Hosting Forum 2 05-May-2003 23:08

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 19:46.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.