Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Importance and effectiveness of page gzip
Old 09-23-2009, 11:24 PM Importance and effectiveness of page gzip
Galaxian's Avatar
Dingleberry!

Posts: 825
Name: Rich
Location: United Kingdom
Trades: 0
What are the positive and negatives of implementing:

PHP Code:
if(!ob_start("ob_gzhandler")) ob_start(); 
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Galaxian is offline
Reply With Quote
View Public Profile Visit Galaxian's homepage!
 
 
Register now for full access!
Old 09-23-2009, 11:42 PM Re: Importance and effectiveness of page gzip
Lashtal's Avatar
wherenomanhasgonebefore

Posts: 679
Name: Lashtal
Trades: 0
from what i've read about gzhandler is that browsers parse your code faster, and, who doesn't want that?

But that not all browsers support it. (and i'm not sure what browsers don't)
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
Lashtal is offline
Reply With Quote
View Public Profile
 
Old 09-24-2009, 03:22 PM Re: Importance and effectiveness of page gzip
NullPointer's Avatar
Will Code for Food

Posts: 2,787
Name: Matt
Location: Irvine, CA
Trades: 0
Quote:
Originally Posted by Lashtal View Post
from what i've read about gzhandler is that browsers parse your code faster, and, who doesn't want that?

But that not all browsers support it. (and i'm not sure what browsers don't)
Actually if anything the browser parses the code slower. What it does do is sends compressed content over the network which reduces bandwidth and download time. The browser must actually decompress the file before parsing it, which should be faster than if you had downloaded the uncompressed file instead.

Browser support should be irrelevant, as the documentation explains: "it determines what type of content encoding the browser will accept ("gzip", "deflate" or none at all) and will return its output accordingly".

I can't say with any authority how much bandwidth compression actually saves, but I'd imagine on average it is not a huge amount. If you are having issues with bandwidth give it a try and see if it helps.

Also, it seems that the compression occurs everytime a user requests a file, so you may also want to take server load into consideration (though I doubt the impact is very significant).
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 09-24-2009, 06:02 PM Re: Importance and effectiveness of page gzip
Lashtal's Avatar
wherenomanhasgonebefore

Posts: 679
Name: Lashtal
Trades: 0
Does anyone know in what cases gzhandler might be necessary?

Most PHP i've ever ran has parsed almost instantaneously fast.

the only scripts i've ever had difficulties with have been scripts whose images were stored in a database (PHPizabi), and/or heavily employed tables in it's site's code (osDate).
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
Lashtal is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Importance and effectiveness of page gzip
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.61284 seconds with 12 queries