[advanced search]
Results from the most recent live auction are here.
13 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming > CODE
User Name
Password

Old 06-24-2005, 07:38 AM   · #1
GeorgeB
Account Closed
 
GeorgeB's Avatar
 
Trader Rating: (26)
Join Date: May 2005
Posts: 648
NP$: 0.00 (Donate)
GeorgeB is just really niceGeorgeB is just really niceGeorgeB is just really niceGeorgeB is just really nice
Simple gz compression

Want to use gz compression on your PHP pages to compress pages and save bandwidth without affecting performance?

Use the PHP ob_gzhandler callback function.

Here is an example of it's use:

Code:
<?php ob_start("ob_gzhandler"); ?> <html> <body> <p>This should be a compressed page.</p> </html> <body>

That's right... a simple line at the beginning of your PHP file is all it takes! Try it yourself in your own custom, paid, or free PHP applications

Note: ob_gzhandler() requires the zlib extension.

More FREE helpful tutorials like this one at www.georgeboone.com


Please register or log-in into NamePros to hide ads

Last edited by GeorgeB : 10-27-2005 at 12:53 PM.
GeorgeB is offline   Reply With Quote
Old 06-24-2005, 10:27 AM   · #2
Porte
Template Designer
 
Porte's Avatar
 
Name: Ahmed
Location: Somewhere on earth!
Trader Rating: (29)
Join Date: May 2005
Posts: 3,533
NP$: 17.30 (Donate)
Porte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud of
Hey George, I use currently at my custom script one page only index.php which calls all other pages as includes depending on the 'mode' value. Do I input this line in the index page only? or the includes as well? ~

And it needs to become at the very top right below session_start(); ?
Porte is offline   Reply With Quote
Old 06-29-2005, 01:26 AM   · #3
i386
NamePros Member
 
Trader Rating: (3)
Join Date: Oct 2003
Posts: 126
NP$: 182.00 (Donate)
i386 is an unknown quantity at this point
Cool, didn't know that one! Thanks for sharing!
i386 is offline   Reply With Quote
Old 07-01-2005, 10:56 AM   · #4
hasif
Account Closed
 
Name: Hasif Ahmed
Location: NY, USA
Trader Rating: (12)
Join Date: May 2005
Posts: 285
NP$: 45.00 (Donate)
hasif has a spectacular aura abouthasif has a spectacular aura about
oh! i hope i can use it any of my forum.
hasif is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

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
Tutorial: Simple site management with the use of PHP and the query string(?page=1) deadserious Webmaster Tutorials 8 10-09-2004 01:20 PM
Tutorial: Creating a simple cgi hit counter for your site using Perl deadserious Webmaster Tutorials 3 05-29-2004 01:31 AM
A simple cgi hit counter for your site using Perl deadserious CODE 2 11-07-2003 08:23 AM

Site Sponsors
EscrowDNS http://www.mobisitetrader.com/ http://www.mobisitetrader.com/
Advertise your business at NamePros
All times are GMT -7. The time now is 10:12 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0