I am trying to suppress buffering of a script with many PHP function calls. On my localhosts–both XAMPP and WAMP–the page is rendered immediately, with status update text echoed at the completion of each PHP function; i.e. the page is rendered top-down, with HTML/CSS elements rendered as they are read, as well as the PHP function blocks.
The same script on DreamHost waits until it is finished processing it in its entirety before displaying any of the HTML & text status that are indicated to be echoed.
PhpInfo.php reveals identical set-ups for both my localhosts and for Dreamhost in every area that might affect this (output buffering, gzip, etc.)
I have tried placing this code at the top of the script to see if it will allow the page to render progressively:
My localhosts still process the page with progressive rendering as before. On Dreamhost, however, I receive a blank page with nothing in its source; the directives would seem to stop the script entirely.
How may I allow the script to render/display progressively as on my localhosts? I don’t understand why the behavior is so different for them (specifically, XAMPP and WAMP, which both render the page from the script progressively) and Dreamhost (which defers display of the page until everything is fully processed).
(Please ask for specifics regarding PHP INI settings, etc., as there may be some I have not investigated.)