teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

イメージ画像

2017/04/20 04:23

投稿

mosa
mosa

スコア218

title CHANGED
File without changes
body CHANGED
@@ -29,4 +29,4 @@
29
29
 
30
30
  ブラウザ側のタイムアウト(Chrome)
31
31
 
32
- ![イメージ説明](295fea6e1ee3d3f3a92e5cb3e84fad1c.png)
32
+ ![イメージ説明](a78abbc8aa97c54a2f6ccfa094012b4f.png)

2

Chromeのタイムアウト画面を追加

2017/04/20 04:23

投稿

mosa
mosa

スコア218

title CHANGED
File without changes
body CHANGED
@@ -23,4 +23,10 @@
23
23
  ```
24
24
 
25
25
  Apache2.4
26
- PHP5.6 (CakePHP3.2)
26
+ PHP5.6 (CakePHP3.2)
27
+
28
+ ---
29
+
30
+ ブラウザ側のタイムアウト(Chrome)
31
+
32
+ ![イメージ説明](295fea6e1ee3d3f3a92e5cb3e84fad1c.png)

1

微修正

2017/04/20 04:18

投稿

mosa
mosa

スコア218

title CHANGED
File without changes
body CHANGED
@@ -12,11 +12,11 @@
12
12
  ```PHP
13
13
  ini_set('max_execution_time', 7200);
14
14
  set_time_limit(0);
15
- header('Content-Type: application/zip;');
16
- header('Content-Disposition: attachment;filename="huge.zip"');
17
15
 
18
16
  // ZIPファイル生成のとても時間がかかる処理
19
17
 
18
+ header('Content-Type: application/zip;');
19
+ header('Content-Disposition: attachment;filename="huge.zip"');
20
20
  $file = fopen($zip, 'r');
21
21
  while(!feof($file)) echo fread($file, 8192);
22
22
  fclose($file);