Changeset 23388 for branches/version-2_13-dev/data/class/SC_Response.php
- Timestamp:
- 2014/05/01 16:34:42 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/SC_Response.php
r23124 r23388 336 336 } 337 337 } 338 339 /** 340 * ダウンロード用の HTTP ヘッダを出力する 341 * 342 * @return void 343 */ 344 public static function headerForDownload($file_name) { 345 header("Content-disposition: attachment; filename={$file_name}"); 346 header("Content-type: application/octet-stream; name={$file_name}"); 347 header('Cache-Control: '); 348 header('Pragma: '); 349 } 338 350 }
Note: See TracChangeset
for help on using the changeset viewer.
