I have a PHP webpage, which generates statistics and to generate them before sending them into the browser 15sec takes.
The issue with me is that the browser is loading with the blank page. Unfortunately I do not have access to the error_log file.
But I thought, if I start sending data in foreach-loop which consumes most of the generation like it
resonance ";
The connection will not end and the page will load.
Earlier I thought this may be memory_limit or max_excation_time problem, so I increased both without any luck. But it would be strange for me, because killing max_execution_time could be a blank page, whether I am sending echo ''
or not.
Does any other PHP setting, I do not know, about which 10sec will cause the connection to end without data benning?
Edit :
No page is completely empty Data sent to:
& Lt; -! & Lt; [Endif] - & gt; & Lt ;! - [If IE 6] & gt; & Lt; Style type = "text / css" media = "screen, projection" & gt; @ Import URL (CSS / IE6 CSS); & Lt; / Style & gt; & Lt; [Endif] - & gt; & Lt ;! - [GT IE 5.9] & gt; & Lt ;! - & gt; & Lt; Script type = "text / javascript" src = "scripts.js" & gt; & Lt; / Script & gt; & Lt; -! & Lt; [Endif] - & gt;
Figures are being generated after this point and therefore I only see one blank page.
Here is the HTTP-header:
search URL: http: //gruppenunterkuenfte.de/index.php? Mod = home & amp; Action = stats_belegungsanfrage2 Request method: Get the status code: Accept 200 OK request headers: Application / XML, App / XHTML + XML, Text / html; Q = 0.9, text / plain; Q = 0.8, image / PNG, * / *; Q = 0.5 cache-control: max-age = 0 referrer: http: //gruppenunterkuenfte.de/index.php? Mod = home & amp; ; Action = Statistics_BeligeSensFrage2 User-agent: Mozilla / 5.0 (Windows; U; Windows NT 6.1; N-US) Apple Webcat / 534.3 (KHML, like GECO) Chrome / 6.0.472.63 Safari / 534.3 Query String Parameter Mod: Home Action: Statistics_BeelGangSanFrage 2 Response Headers Cash-Control: No-Store, No-Cash, Rick-Delilit, Post Check = 0, Pre-Check = 0 Connection: Close Content-Type: Text / html; Charset = utf-8 Date: Sat, 25 Sep 2010 15:07:11 GMT Closing: Thursday, November 19, 1981 08:52:00 GMT Pragma: No-Cache Server: Apache / 2.2.16 Transfer Encoding: Chunked X-Powered by: PHP / 5.2.11
Here are my 2 cents:
First of all, I will make sure that all types of buffering are off. A gentleman was quite a bit to offer this code once:
@pape_setteni ( 'No-jizip', 1); @ini_set ('zlib.output_compression', 0); @ini_set ('implicit_flush', 1); ($ I = 0; $ i & lt; ob_get_level (); $ i ++) {ob_end_flush (); } Ob_implicit_flush (1);
After that, I suggest that you have a echo after some interval;
send. For example, if there is a loop in your code, then send one echo after each recurrence or something like this, depending on how long each recurrence goes. This way you are not wasting time is sending echos and you also keep the page alive.
Comments
Post a Comment