Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8899483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:52:04+00:00 2026-06-15T00:52:04+00:00

In my PHP.INI, gzip compression already enabled. May I use ob_start(‘ob_gzhandler’); in my PHP

  • 0

In my PHP.INI, gzip compression already enabled. May I use ob_start('ob_gzhandler'); in my PHP pages? And whats different between these two?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T00:52:05+00:00Added an answer on June 15, 2026 at 12:52 am

    Enabling compression like this:in PHP.ini can be done like this:

    zlib.output_compression = On
    

    this will mean every page PHP serves will be compressed, which may or may not be what you want.

    Using ob_start(‘ob_gzhandler’) however will only compress that particular buffer / page and will not affect anything else served by PHP.

    Use the second method if you want to compress only certain output. Mixing the two will be pointless, and will probably just use extra CPU cycles trying to compress the already compressed output.

    It could be that PHP is clever enough to only do the compression once, but it’s still a fruitless exercise to use both approaches together.

    It’s usually better to enable compression in your web server, although this depends on what you are trying to achieve.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have no permission to modify php.ini but use SSH , and in phpmyadmin,
When looking at the set folder in php.ini for eAccelerator to use, nothing is
I already altered my php.ini in Apache to have these settings: session.gc_maxlifetime = 1440
I have enabled Xdbug from php.ini. How do i enable debugging from eclipse. I
I was wondering if it is advisable to use php .ini files to set
Already changed file php.ini And the index.php file contains: <?php $server = 'name/SQLEXPRESS'; $link
Anyone working with php knows that php.ini is a big file that may cause
my php.ini values upload_max_size = 14000M post_max_size = 14000M if i increase value more
I found php.ini inside my website directory . The directory structure is /mobiles/images/php.ini Inisde
've registered xdebug in php.ini (as per http://xdebug.org/docs/install ) but it's not showing up

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.