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
July
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
Geek Code Write in 1993 I like it
by Gizmo
07/18/08 11:05 PM
Miss mash of urban ledgends told so well
by Gizmo
07/18/08 11:04 PM
I read this and laughed
by Gizmo
07/18/08 10:58 PM
Vote for President
by IceMyst
07/18/08 06:38 AM
question about IE and CSS
by Gizmo
07/17/08 11:28 PM
XBox Live Port Forwarding
by Gizmo
07/14/08 09:41 AM
EeePC Delivery
by Gizmo
07/14/08 03:18 AM
Pre Login message?
by Shinobi
07/13/08 10:44 PM
Comcast upgrades Upload Speed!
by Gizmo
07/11/08 12:39 AM
Robert Moore aka MooreR PC Magazine Subscription
by Gizmo
06/22/08 01:36 PM
Topic Options
#18776 - 11/04/05 03:56 PM PHP Compressed Sites
Gizmo Administrator Offline
Community Owner
*****

Registered: 02/28/02
Posts: 6909
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: 3246
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: 6909
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: 3246
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: 6909
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
6904 Members
44 Forums
10241 Topics
44953 Posts

Max Online: 677 @ 06/30/07 10:06 PM
Top Posters
Gizmo 6909
§intå× 3246
UGN Security 3232
IceMyst 1448
SilentRage 1273
Ice 1146
pergesu 1134
Infinite 1039
jonconley 954
Girlie 903
Newest Members
naskweeky, DJ ODEN, Maurino, alfred1964, sadasd
6903 Registered Users
Who's Online
0 Registered (), 5 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Latest News
New Update Humpday
by Gizmo
07/17/08 08:21 AM
IRC Restored
by Gizmo
07/15/08 12:50 AM
IRC Server Funding
by Gizmo
07/01/08 02:48 PM
Fixed: Front Page - News Display
by Gizmo
06/25/08 11:25 AM


Donate

Get the Google FireFox Toolbar
Get Firefox!
Get FireFox!