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
Our Sponsors

Latest Postings
Owning Servers
by Gizmo
Today at 07:20 AM
my old account still exists!
by Gizmo
08/19/08 02:27 PM
Burger King gone Wild!
by Gizmo
08/08/08 11:42 PM
PDX 2600
by rbcp
08/07/08 12:46 AM
The Pirate Bay- shut down?
by ZER0_DECEPTION
08/05/08 09:07 PM
Windows Events for Changing Access rights to a folder or a File
by Gizmo
08/05/08 12:32 PM
question about IE and CSS
by §intå×
08/04/08 08:51 PM
Server
by Gizmo
08/01/08 01:29 AM
Topic Options
#18776 - 11/04/05 03:56 PM PHP Compressed Sites
Gizmo Administrator Offline
Community Owner
*****

Registered: 02/28/02
Posts: 6930
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

Top  
#18777 - 11/08/05 02:18 PM Re: PHP Compressed Sites
§intå× Administrator Offline
UGN Elite
*****

Registered: 12/03/02
Posts: 3250
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 Offline
Community Owner
*****

Registered: 02/28/02
Posts: 6930
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: 3250
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 Offline
Community Owner
*****

Registered: 02/28/02
Posts: 6930
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 
Forum Stats
6911 Members
44 Forums
10465 Topics
45205 Posts

Max Online: 677 @ 06/30/07 10:06 PM
Top Posters
Gizmo 6930
UGN Security 3441
§intå× 3250
IceMyst 1449
SilentRage 1273
Ice 1146
pergesu 1134
Infinite 1039
jonconley 954
Girlie 903
Newest Members
red queen, byopc, cybermox, NiPah, mcscrwdy25
6911 Registered Users
Who's Online
0 Registered (), 9 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Latest News
Update Humpday - Aug 27, 2008
by Gizmo
08/28/08 12:58 AM
Update Humpday - Aug 20, 2008
by Gizmo
08/21/08 01:48 AM
Update Humpday - Aug 14, 2008
by Gizmo
08/14/08 08:33 AM
Update Humpday - Aug 06, 2008
by Gizmo
08/06/08 08:05 AM


Donate

Get the Google FireFox Toolbar
Get Firefox!
Get FireFox!