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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:14:31+00:00 2026-05-22T19:14:31+00:00

In a small application, I’m writing, during installation phase, the user must enter detail

  • 0

In a small application, I’m writing, during installation phase, the user must enter detail about the MySQL connection in a form (server name, database name, username …)

I would like to display line by line the result of tests and actions done in a window, with eventually a small pause between each test, like :

“Connection to the server …”(2s) “ok” (2s)
“Connection to the database …”(2s) “ok” (2s)
“Creation of tables …”(2s) “ok”
….etc

I have tried with ob_start(), flush(), ob_flush() but it doesn’t work as my webserver seems to buffer itself the php output, so the script takes a long time to run but everything is printed at the same time.

I have searched here and with Google, without any result (may be not with the correct keywords)

Can you point me to solution ?
with Ajax may be ?

ericc

  • 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-05-22T19:14:32+00:00Added an answer on May 22, 2026 at 7:14 pm

    There are multiple solutions to this, but disabling caching altogether isn’t easily accomplished.
    Because on the server side there is some caching, which can be disabled, but there is also a very large chance that the browser is caching as well.

    To fix this you have a few options:

    • fake it, display a static javascript based “animation” and redirect when done.

    • Use ajax, let the installation script echo the results to a text file / mysql database and use a different php script to load the the text file / database at set intervals and display the new results.

    • Use the newest HTML5/javascript streaming API which is made exactly for stuff like this, it is, however, quite hard to find any good documentation on this.

    To disable server side caching, I use this code:

    @ini_set('zlib.output_compression', 0);
    @ini_set('implicit_flush', 1);
    for ($i = 0; $i < ob_get_level(); $i++) { ob_end_flush(); }
    ob_implicit_flush(1);
    header('Expires: Fri, 01 Jan 1990 00:00:00 GMT');
    header('Cache-Control: no-cache, no-store, max-age=0, must-revalidate');
    header('Pragma: no-cache');
    header('Connection: close');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've built a small application which has User Management, a frontend console to enter
I'm writing a small application in VB.NET and I would like some of the
I'm writng a small application in PHP + MySQL and have come to the
I am writing a small application using Rails 3. In one part of it
I have a small application written in Play! which allows user registration and adding
I'm writing a small application that generates a CSV file for import into MYOB.
Am writing one small application to parse from XML to JSON object for iphone.
I have a small application I am working on that at one point needs
I am creating a small application that will be deployed on Window. The database
I am developing a small application which lists the contents from files of a

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.