Hey Alex,
App Engine buffers output, as you observed, and waits for the response to
complete before sending it. This is described in the documentation
<https://cloud.google.com/appengine/docs/php/how-requests-are-handled#PHP_Responses>.
You could look into using Compute Engine <https://cloud.google.com/compute/>
with
a PHP runtime to get around this restriction.
Cheers,
Nick
Cloud Platform Community Support
On Friday, May 27, 2016 at 4:43:06 PM UTC-4, Alex Kerr wrote:
>
> I've got a long running PHP script which does some processing and should
> be outputting text to the browser occasionally during it's runtime but it
> just seems to stack all the output up and display it at the end. I'm using
> ob_start(), ob_flush() and ob_end_flush so PHP definitely should be sending
> output to the webserver which I'm guessing is buffering it all. Is there an
> way to stop this from happening and just see the output during the script
> run?
>
> Psuedocode is:
>
> ob_start();
> while(more-processing-to-do)
> {
> // do some processing
> echo "Still processing<br>";
> ob_flush();
> }
> ob_end_flush();
>
> This is specifically for the dev server, I haven't been able to try online
> yet...
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/c06e5f95-21fe-4cd3-81c9-e23ab5d7f399%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.