質問編集履歴

1

誤字脱字を修正

2019/06/27 08:07

投稿

NEO_PLANETT-777
NEO_PLANETT-777

スコア333

test CHANGED
File without changes
test CHANGED
@@ -30,7 +30,7 @@
30
30
 
31
31
  【呼び側】
32
32
 
33
- <a href="http://hogehoge/FileDownload.php?NO=001&NM=あああ">
33
+ <a href="http://hogehoge/FileDownload.php?NO=001&NM=あああ.xlsx">
34
34
 
35
35
 
36
36
 
@@ -50,9 +50,7 @@
50
50
 
51
51
  header('Content-Length: ' . filesize($filePath));
52
52
 
53
- header('Content-Disposition: attachment; filename="'.$fileNm.'"');
54
-
55
- header('Content-Disposition: attachment; filename*=UTF-8\'\''.rawurlencode($fileNm));
53
+ header('Content-Disposition: attachment; filename*=UTF-8\'\''.rawurlencode($nm));
56
54
 
57
55
 
58
56