0

i have some annoying error:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>200 OK</title>
</head><body>
<h1>OK</h1>
<p>The server is temporarily unable to service your
request due to maintenance downtime or capacity
problems. Please try again later.</p>
</body></html>

The PHP code:

.
.
    for ($i = 0; $i < sizeof($rows); $i++) {
    $Lenght = mt_rand(300, 400);
                    for ($x = 0; $x < $Lenght; $x++) {
                        $NColumn1 .= mt_rand(0, 9);
                        $NColumn2 .= mt_rand(0, 9);
                    }
                    $database->exec("UPDATE Child SET Column1 = '$NColumn1', Column2 = '$NColumn2' WHERE Parent_ID = '$Parent_ID';");
                }  

I have 300 records in a table Child where I UPDATE with new one and that works just fine but during this proces I get a downloaded php file with 200 OK and in background my table is updating. I am using Zend Server CE SP1 5.6.0 with PHP 5.4 and Apache2. I searched and fond somthing about HEADER handlings and in php.ini file to change allow_url_fopen = On to allow_url_fopen = Off , and search error log in Apache2. So I try all of that but nothing. So, is it possible to fix or disable that kind of error or do somthing to avoid it? Realy need a good help!

4

1 回答 1

2

我刚刚遇到了同样的问题并找到了这个链接: ZendEnablerConf.xml

你可能想把它从德语翻译过来。;)

我相信您需要查找 ZendEnablerConf.xml 并更改超时:

<timeout connectionTimeout = "60" requestTimeout = "300" />
于 2013-05-23T16:45:24.023 回答