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, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
December
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 31
Our Sponsors


Latest Postings
My friend NEEDS your HELP!
by Gizmo
11/26/08 12:21 AM
Useful PHP Functions & Code
by Gizmo
11/13/08 09:25 PM
UBBCode Tags
by Gizmo
11/13/08 09:25 PM
Topic Options
Rate This Topic
#18776 - 11/04/05 03:56 PM PHP Compressed Sites
Gizmo Administrator Online   shocked
Community Owner
*****

Registered: 02/28/02
Posts: 6958
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, Elite Web Gamers & VNC Web Design Owner

Top
Our Sponsors
Sponsor Our Sponsors

Sponsor Advertisements help keep UGN Security Online.



Support UGN Security by Purchasing our Sponsors Products.
Top  
#18777 - 11/08/05 02:18 PM Re: PHP Compressed Sites
§intå× Administrator Offline
UGN Elite
*****

Registered: 12/03/02
Posts: 3252
Loc: here
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 06:44 PM Re: PHP Compressed Sites
Gizmo Administrator Online   shocked
Community Owner
*****

Registered: 02/28/02
Posts: 6958
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, Elite Web Gamers & VNC Web Design Owner

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

Registered: 12/03/02
Posts: 3252
Loc: here
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 03:49 PM Re: PHP Compressed Sites
Gizmo Administrator Online   shocked
Community Owner
*****

Registered: 02/28/02
Posts: 6958
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, Elite Web Gamers & VNC Web Design Owner

Top



Moderator:  Â§intå×, Gizmo 
Featured Member
Registered: 02/11/08
Posts: 16
Forum Stats
6890 Members
44 Forums
11065 Topics
45844 Posts

Max Online: 677 @ 06/30/07 10:06 PM
Top Posters
Gizmo 6958
UGN Security 4115
§intå× 3252
IceMyst 1449
SilentRage 1273
Ice 1146
pergesu 1134
Infinite 1039
jonconley 954
Girlie 903
Newest Members
lucky vin, prEttyNDistress, AndrewKlilly, border, f4k3m3
6889 Registered Users
Who's Online
1 registered (Gizmo), 13 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Latest News
Update Humpday - Sept 26, 2008
by Gizmo
11/28/08 03:39 AM
Happy Holidays!
by Gizmo
11/27/08 09:09 AM
New Mailing
by Gizmo
11/24/08 01:30 PM
A special update...
by Gizmo
11/24/08 01:10 PM
Required Reading Update...
by Gizmo
11/07/08 11:36 AM


Donate
  Get Firefox!
Get FireFox!