UGN Security Forums
My ProfileMember DirectoryLogin
Search our ForumsView our FAQView our Site Rules
View our CalendarView our Active TopicsGo to our Main Page

UGN Security Store
 

Network Sites UGN Security, The GoNix Initiative, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
September
Su M Tu W Th F Sa
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Sponsored Links
Latest Postings
The History Thread...
by Gremelin
09/18/14 09:42 AM
Doom 3
by Cyrez
09/11/14 08:58 PM
Amazon Gift Card Generator/KeyGen?te
by Gecko666
08/22/14 09:21 AM
Latest Reviews
Topic Options
Rate This Topic
#18776 - 11/04/05 12:56 PM PHP Compressed Sites
Gremelin Offline

Community Owner
*****

Registered: 02/28/02
Posts: 7193
Loc: Portland, OR; USA
I've heard numerous times on the benefits of compression through GZip on websites; hell we use GZip on our forum...

I've been wondering on the best possible solutions on applying compression globally over a site and found the most simple thing ever; best of all, it allows you to "tinker" with the ouput...

.htaccess
Code:
php_value auto_prepend_file /full/path/to/begin_gzip.php
php_value auto_append_file /full/path/to/end_gzip.php
begin_gzip.php:
Code:
<?php
ob_start("ob_gzhandler");
?>
end_gzip.php
Code:
<?php
ob_flush();
?>
Done!

There are many other ways of accomplishing the above, this way is recommended as it allows you to being able to manipulate the buffer once a page has run (adding things like highlighting, correction of common coding bugs, caching, etc).

If you have scripts that also use GZip you'll need to disable GZip compression within them otherwise they will conflict with this, hence why we're not planning on running this here at UGN Security until we upgrade the forums again.

Original Source for this can be found here
_________________________
Donate to UGN Security here.
UGN Security, Back of the Web, Elite Web Gamers & VNC Web Design Owner

Top
Sponsored Links
      
#18777 - 11/08/05 11:18 AM Re: PHP Compressed Sites
§intå× Offline


*****

Registered: 12/03/02
Posts: 3255
Loc: Maryland
Word of caution, you can really fuck your shit up if you do not know what you are doing. I mean show source code and the like.
_________________________
My New site OpenEyes

Top
#18778 - 11/08/05 03:44 PM Re: PHP Compressed Sites
Gremelin Offline

Community Owner
*****

Registered: 02/28/02
Posts: 7193
Loc: Portland, OR; USA
I've yet to "fuck my shit up" using GLib compression; additionakklly the forum data has been fine with it for the past two years...
_________________________
Donate to UGN Security here.
UGN Security, Back of the Web, Elite Web Gamers & VNC Web Design Owner

Top
#18779 - 11/09/05 06:50 AM Re: PHP Compressed Sites
§intå× Offline


*****

Registered: 12/03/02
Posts: 3255
Loc: Maryland
Quote:
Originally posted by int:
Word of caution, you can really fuck your shit up if you do not know what you are doing. I mean show source code and the like.
Key words being "if you do not know what you are doing" obviously you know what you are doing. I am meerly stating to do your homework. If used wrong you can lock viewers out, show form data, and leave your site stranded or worse vunerable.

If you know what you are doing it is a very nice tool.
_________________________
My New site OpenEyes

Top
#18780 - 11/09/05 12:49 PM Re: PHP Compressed Sites
Gremelin Offline

Community Owner
*****

Registered: 02/28/02
Posts: 7193
Loc: Portland, OR; USA
Quote:
Originally posted by int:
If you know what you are doing it is a very nice tool.
Indeed so; allowing dialup users to render a page as fast as a cable user == good...
_________________________
Donate to UGN Security here.
UGN Security, Back of the Web, Elite Web Gamers & VNC Web Design Owner

Top

Moderator:  §intå×, Gremelin 
Featured Member
Registered: 03/02/02
Posts: 136
Forum Stats
2148 Members
46 Forums
34505 Topics
69675 Posts

Max Online: 1567 @ 04/25/10 02:20 AM
Top Posters
UGN Security 27667
Gremelin 7193
§intå× 3255
SilentRage 1273
Ice 1146
pergesu 1136
Infinite 1041
jonconley 955
Girlie 908
unreal 860
Newest Members
Tim050, Gecko666, defghi795767, Devo60, ali
2148 Registered Users
Who's Online
0 registered (), 327 Guests and 297 Spiders online.
Key: Admin, Global Mod, Mod
Latest News


Donate
  Get Firefox!
Get FireFox!