Jump to content

[SOLVED] Is there a way to update php/html page in realtime?


reakt

Recommended Posts

Hi there, I was previously running on php on IIS and have recently switched over to Apache 2.2. I have a php script that starts with something like:

echo "Processing, please wait...";

It then reads in a text file line by line, outputting the lines to other text files depending on several conditional statements. The input file can be up to 100MB so the script sometimes takes 5-10 mins to run. After the process is complete it goes:

echo "Done!";

 

Previously on IIS when you first loaded the page you would see "Processing, please wait..." while the script processed, then when it finished, you would see on the screen "Processing, please wait...Done!". The word Done having appeared only after the script finished processing.

 

Now since changing to apache when the page loads nothing is displayed on screen for 5-10 minutes while the script is processing, then when it finishes, you get Processing, please wait...Done!" all at once. For some reason it processes the whole script before doing any of the echo commands.

 

Basically I just want to know how I can display something on the screen before the processing begins. Thanks!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.