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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:55:57+00:00 2026-06-02T11:55:57+00:00

Is it possible to have print_r() displayed live. By live I mean while the

  • 0

Is it possible to have print_r() displayed live. By live I mean while the script is executed. I do not want to wait the end of the script to have it displayed. Hope I am clear. Thank you in advance for your replies. Cheers. Marc

  • 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-02T11:55:58+00:00Added an answer on June 2, 2026 at 11:55 am

    Likely you are using PHP through a webserver like Apache.

    Webservers have caching implemented, they tend to send their data out in larger blocks.
    Browsers also have caching implemented, they only refresh the data from time to time and at the end when they finished loading the website.
    Finally PHP also has caching built in.

    HTTP was not made for “live” display it’s more like a static page, that’s why people invented “AJAX” and Javascript to poll for changed/live events after a page was loaded.

    What you can do:

    1. To make sure the data from PHP is sent to the webserver you can use the command flush()
      There is also a php setting called implicit_flush you might want to look up.
    2. The webserver is likely using gzip/mod_gzip to compress output. You need to disable that behaviour.
      Maybe that will do it: @apache_setenv('no-gzip', 1);
    3. Add some more content than just pure text, if you put the data inside a simple “table” including </table> it’s more likely browsers will display it during load.
    4. Look in php ini for this:
      output_buffering = Off
      zlib.output_compression = Off
      You can do this at runtime too (@ini_set('zlib.output_compression', 0);)
    5. Some browsers will only display data if they receive a certain amount of bytes.
      If I recall right 256 byte might help.
      str_repeat(" ", 256); (or anything else)

    I’d like to add that these steps can help solve the issue but from my experience the results are not perfect.
    Every new browser and browser version might act different.

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

Sidebar

Related Questions

Is it possible to have php not to require the begin/end tags ( <?php
It is quite possible that I may not have got the point, but I
Possible Duplicate: Why does Mac's $find not have the option -printf? Not sure what
) i want the smallest possible script to send current URL via email without
Currently I have this small script that makes it possible to check if a
Possible Duplicate: Split string by delimiter, but not if it is escaped I have
I want to know is it possible to have a class that's extended have
is it possible to have links on the welcome page which point to defined
Is it possible have two projects with the same name in flex builder? Here
is possible to have a separator between elements of a GridView? Thanks

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.