I can see from previous posts that flush() does not work and has been asked for a few times over the years. Is this something that will just never happen please ? Realtime output is something I really need, as one script “could” be running for hours at a time.
I COULD write output to a log file and tail it with an autorefresh but that is not optimal and tbh looks unprofessional.
Unless anyone else has any other ideas ? Suggestions welcome
Many thanks for that. I have not used Ajax before but will definitely have a look.
FYI, the script finds “saved game results” and uploads them to my website for anayses. People using it may have just 1 or 2 (which are about 2-3MB each on average), but others may have tens of thousands, thus it “may” be a very long running script, taking several days.
I’m surrently looking at the script uploading 1 at a time, and autorefreshing to send the next one, rinse and repeat.
flush() cannot be handled in the way we handle PHP output. This has been like this for years. However, since we are working on server apps too based on Apache, this should be possible in the future I think.
It would be good if it could. I’m currently looking at polling an output file every few seconds for any changed output, but obviously not the best solutionm as some data may be skipped from the user’s view.