dagnasty Posted August 4, 2008 Share Posted August 4, 2008 If I have a script that takes about 10 seconds to complete parsing to the page, what setting do I change so that the page loads as php parses it? I've looked and searched. I know it exists, but it's slipped my mind as to where it is and what it's called. Link to comment https://forums.phpfreaks.com/topic/118001-page-load-as-php-parses-it-apache-setting-or-php/ Share on other sites More sharing options...
Third_Degree Posted August 4, 2008 Share Posted August 4, 2008 You could try this header: header( 'Transfer-Encoding: chunked' ); Then separate each section with an http data boundary. Not sure if this is what you are looking for. Link to comment https://forums.phpfreaks.com/topic/118001-page-load-as-php-parses-it-apache-setting-or-php/#findComment-607235 Share on other sites More sharing options...
dagnasty Posted August 4, 2008 Author Share Posted August 4, 2008 no this isn't what i'm looking for but I will add this to my notes to research. the answer is a php.ini or apache setting, but I can't find it. Link to comment https://forums.phpfreaks.com/topic/118001-page-load-as-php-parses-it-apache-setting-or-php/#findComment-607310 Share on other sites More sharing options...
PFMaBiSmAd Posted August 4, 2008 Share Posted August 4, 2008 PHP can buffer and compress/zip output, web servers can buffer (some won't send any or the last block of output until a script ends) and compress/zip output (compression done by php or the web server requires the last of the output to have been produced so that the compression can be completed), and browsers buffer (require minimum length content before displaying it) and won't render some output until ending tags are received. Each of these things can either prevent output from being sent to the browser or prevent it from being displayed until the output has been completely produced. Is this long loading time something that you can expect to always exist or is it due to non-optimum code that should be fixed? Link to comment https://forums.phpfreaks.com/topic/118001-page-load-as-php-parses-it-apache-setting-or-php/#findComment-607327 Share on other sites More sharing options...
dagnasty Posted August 4, 2008 Author Share Posted August 4, 2008 No , it's optimized very well. The delay isn't an issue as it's caused by network delay when grabbing several large pages through cURL. Do you know the page caching setting off hand? I'm using apache and latest php Link to comment https://forums.phpfreaks.com/topic/118001-page-load-as-php-parses-it-apache-setting-or-php/#findComment-607863 Share on other sites More sharing options...
dagnasty Posted August 4, 2008 Author Share Posted August 4, 2008 I say caching but I believe I may mean buffering Link to comment https://forums.phpfreaks.com/topic/118001-page-load-as-php-parses-it-apache-setting-or-php/#findComment-607885 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.