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

  • Home
  • SEARCH
  • 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 7724811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:46:55+00:00 2026-06-01T04:46:55+00:00

When using on_start() does it make any difference to do, // ENABLE GZIP COMPRESSION

  • 0

When using on_start() does it make any difference to do,

// ENABLE GZIP COMPRESSION
ob_start();
ob_start('ob_gzhandler');

Or is this exactly the same,

// ENABLE GZIP COMPRESSION
ob_start('ob_gzhandler');

I ask as with the first example my website seems to speed up a bit.

Thanks

  • 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-01T04:46:57+00:00Added an answer on June 1, 2026 at 4:46 am

    You should do either:

    ob_start();
    

    or:

    ob_start('ob_gzhandler');
    

    But not both. You can check $_SERVER['HTTP_ACCEPT_ENCODING'] to see if the user agent accepts gzip encodings:

    if(strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false)
       ob_start('ob_gzhandler');
    else
        ob_start();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my first time using JQuery in any of my projects. I have
Are there any implications of using SqlDependency and LINQ to SQL together. Or do
Does anyone have any examples of starting the file stream before the rendering/building process
I am using JQTouch to make s simple shopping cart, those not familiar with
Possible Duplicate: How come millisUntilFinished cannot detect exact CountDownTimer intervals? Why does using the
Does somebody knows what this error means? Fatal Python error: PyEval_RestoreThread: NULL tstate In
I am using an embedded database file, on start up of my app, i
I have some problems to start programming using cocos2D on linux + android. I
I want to start development using qt-embedded on my embedded device project. Can you
I am looking to start working on a personal site using C#. I work

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.