回答編集履歴
3
訂正
test
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
```
|
2
2
|
|
3
|
-
header('Content-Type: application/
|
3
|
+
header('Content-Type: application/x-download');
|
4
4
|
|
5
5
|
header('Content-Disposition: attachment; filename="'.$file.'"');
|
6
6
|
|
@@ -9,3 +9,7 @@
|
|
9
9
|
|
10
10
|
|
11
11
|
こんなですね。
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
※画面表示用のコードと間違えたので訂正しました。
|
2
訂正
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
header('Content-Type: application/pdf');
|
4
4
|
|
5
|
-
header('Content-Disposition:
|
5
|
+
header('Content-Disposition: attachment; filename="'.$file.'"');
|
6
6
|
|
7
7
|
```
|
8
8
|
|
1
正確に
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
header('Content-Type: application/pdf');
|
4
4
|
|
5
|
-
header('Content-Disposition: inline; filename="'.$
|
5
|
+
header('Content-Disposition: inline; filename="'.$file.'"');
|
6
6
|
|
7
7
|
```
|
8
8
|
|