×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

gzip or not to gzip - This is my question!

gzip or not to gzip - This is my question!

gzip or not to gzip - This is my question!

(OP)
Is there a benefit to compressing rendered output in PHP?

My first thought is NO since it can increase load/push time thus making your website slower.

What do you guys/gals have to say about pros and cons the use of gziplib?

--
SouthBeach
http://www.fpgroups.com
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.

RE: gzip or not to gzip - This is my question!

I may be mistaken, but I suspect you are confusing what the ZLib library does.
http://php.net/manual/en/book.zlib.php

It does not compress output per se.

It generates compressed files or strings in gz format. i.e if you wanted to automatically produce a compressed archive for download from the website. Or compress a string to then store in a file directly.

It does not and should not be used to compress the final HTML code output, otherwise no browser would be able to do anything with it. Browsers do not decompress gz formatted data.

Or are you talking about something else?







----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech

RE: gzip or not to gzip - This is my question!

(OP)
Nope, you are not mistaken - I was ...

I can now see, how this is very useful.

Thanks!

--
SouthBeach
http://www.fpgroups.com
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close