Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3228144
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:39:27+00:00 2026-05-17T16:39:27+00:00

I have a PHP webpage, that generates statistics and takes about 15sec to generate

  • 0

I have a PHP webpage, that generates statistics and takes about 15sec to generate them, before sending them to the Browser.

The issue I have is that the browser ends up loading with a blank page. Unfortunately I don’t have access to the error_log file.

But I figured, that if I start sending data in the foreach-loop which consumes most of the generation time like so

echo ' ';

the connection will not terminate and the page will load.

First I thought this might be a memory_limit or max_execution_time issue, so I increased both, without any luck. But this would also seam odd to me since hitting the max_execution_time would result in a blank page no matter I’m sending echo ' ' or not.

Is there an other PHP setting, I don’t know of, that would cause a connection to terminate after about 10sec without data beeing send?

Edit:

The page is not completely blank. Here is the data beeing sent:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta name="author" content="Gerd Grützmacher">
  <meta name="robots" content="index,follow">
  <meta http-equiv="Language" content="de">  
  <link rel="icon" href="/favicon.png" type="image/png">

  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>

  <!--[if (gte IE 5.9)]><!-->
  <link rel="stylesheet" type="text/css" href="css/gruppenunterkuenfte-min.css" />
  <!--<![endif]-->

  <!--[if IE 6]>
  <style type="text/css" media="screen, projection">
       @import url(css/ie6.css);
  </style>
  <![endif]-->

  <!--[if gte IE 5.9]><!-->
    <script type="text/javascript" src="scripts.js"></script>
  <!--<![endif]-->

After this point the statistics are beeing generated and therefore I only see a blank page.

Here is the HTTP-Header:

quest URL:http://gruppenunterkuenfte.de/index.php?mod=home&action=stats_belegungsanfrage2
Request Method:GET
Status Code:200 OK
Request Headers
Accept:application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Cache-Control:max-age=0
Referer:http://gruppenunterkuenfte.de/index.php?mod=home&action=stats_belegungsanfrage2
User-Agent:Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3
Query String Parameters
mod:home
action:stats_belegungsanfrage2
Response Headers
Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection:close
Content-Type:text/html; charset=utf-8
Date:Sat, 25 Sep 2010 15:07:11 GMT
Expires:Thu, 19 Nov 1981 08:52:00 GMT
Pragma:no-cache
Server:Apache/2.2.16
Transfer-Encoding:chunked
X-Powered-By:PHP/5.2.11
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T16:39:28+00:00Added an answer on May 17, 2026 at 4:39 pm

    Here are my 2 cents:

    First off i would make sure that all types of buffering is off. A gentleman was kinda enough to provide this code once:

    @apache_setenv('no-gzip', 1);
    @ini_set('zlib.output_compression', 0);
    @ini_set('implicit_flush', 1);
    for ($i = 0; $i < ob_get_level(); $i++) { ob_end_flush(); }
    ob_implicit_flush(1);
    

    After that i would suggest that you send an echo ' '; after some intervals. For instance if your code has a loop, send an echo after lets say every 10th iteration or something like that, based on how long each iteration takes. That way you aren’t wasting time sending echos and you page stays alive as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have PHP configured so that magic quotes are on and register globals are
We have PHP 5.2.6 deployed to c:\php and in that folder there is the
Is there any way to have PHP automatically call a function, before a script
I have a php server that is running my domain name. For testing purposes
We have a PHP project that we would like to version control. Right now
I have a PHP application that displays a list of options to a user.
I have a PHP script that runs as a CGI program and the HTTP
I have a web page x.php (in a password protected area of my web
Does PHP have a method of having auto-generated class variables? I think I've seen
I have buy.php with a form where you enter items, quantity, shipping data, etc.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.