3 ms·
Yes I believe so. If you want to try this out you can setup a PHP page that puts some content up and then calls sleep(). You'll see that the content that has be
by mdasen 16y ago
Yes I believe so. If you want to try this out you can setup a PHP page that puts some content up and then calls sleep(). You'll see that the content that has been processed and sent to the browser is displayed as the rest is processed.
- morganpyne 16y agoTo do this you probably want to ensure that the webserver output buffer, PHP's output buffer, and possibly even the TCP stack buffer (if they are all different sizes) are filled with enough test data to get flushed and sent to the browser before calling sleep(), otherwise you won't see much in the client. On a slightly related note tuning these 3 values and setting them to sizes appropriate for the content you are serving can increase your webservers performance.
- cwp 16y agoflush()