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 8346845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:09:17+00:00 2026-06-09T07:09:17+00:00

I work on a PHP project and I use flush() . I did a

  • 0

I work on a PHP project and I use flush().

I did a lot of search and found that PHP sends long outputs of scripts to the browser in chunk parts and does not send all the huge data when the script terminates.

I want to know the size of this data, I mean how many bytes the output must be for PHP to send them to browser.

  • 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-09T07:09:18+00:00Added an answer on June 9, 2026 at 7:09 am

    It’s not only PHP that chunks the data; it’s actually the job of Apache (or Tomcat etc) to do this. That’s why the default is to turn off the “chunking” in PHP and leave it to Apache. Even if you force a flush from PHP, it still can get trapped by Apache. From the manual:

    flush() may not be able to override the buffering scheme of your web
    server and it has no effect on any client-side buffering in the
    browser. It also doesn’t affect PHP’s userspace output buffering
    mechanism. This means you will have to call both ob_flush() and
    flush() to flush the ob output buffers if you are using those.

    There’s a Wikipedia article on transfer encoding / chunking: http://en.wikipedia.org/wiki/Chunked_transfer_encoding

    Apache gets more complicated with GZIP or deflate encoding; you’ll need to hit an apache server as to how you chan configure it.

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

Sidebar

Related Questions

I am required to work on a php project that requires the database to
I used an htaccess in my project that use Codeigniter framework: DirectoryIndex index.php RewriteEngine
I have this problem getting my newly created php project on Netbeans work on
I have eclipse 3.7.2 to work on PHP projects that are on remote Linux
Ok it does work in PHP but if I modify the file so that
Here's my situation: I'm working on a PHP project that uses a few functions
I want to know how can i use Zend Framework in my php project
I have a Windows based PHP project (CRLF Newlines) that wasn't in any kind
I've been a PHP developer but recently need to work on some project using
I'm doing i18n for a php project using gettext. I'd like to use the

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.