回答編集履歴

3

訂正

2015/04/17 14:47

投稿

退会済みユーザー
test CHANGED
@@ -1,6 +1,6 @@
1
1
  ```
2
2
 
3
- header('Content-Type: application/pdf');
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

訂正

2015/04/17 14:47

投稿

退会済みユーザー
test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  header('Content-Type: application/pdf');
4
4
 
5
- header('Content-Disposition: inline; filename="'.$file.'"');
5
+ header('Content-Disposition: attachment; filename="'.$file.'"');
6
6
 
7
7
  ```
8
8
 

1

正確に

2015/04/17 14:46

投稿

退会済みユーザー
test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  header('Content-Type: application/pdf');
4
4
 
5
- header('Content-Disposition: inline; filename="'.$name.'"');
5
+ header('Content-Disposition: inline; filename="'.$file.'"');
6
6
 
7
7
  ```
8
8