Changeset 8623 for temp


Ignore:
Timestamp:
2006/11/19 20:51:52 (20 years ago)
Author:
uehara
Message:

blank

Location:
temp/trunk/html/test/uehara
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/test/uehara/file_view.php

    r8618 r8623  
    77 
    88require_once("../../require.php"); 
     9 
     10            Header("Content-disposition: attachment; filename=".basename($_POST['select_file'])); 
     11            Header("Content-type: application/octet-stream; name=".basename($_POST['select_file'])); 
     12            Header("Cache-Control: "); 
     13            Header("Pragma: "); 
    914 
    1015// ¥Õ¥¡¥¤¥ëÆâÍÆÉ½¼¨ 
  • temp/trunk/html/test/uehara/tree.php

    r8622 r8623  
    4949        } else { 
    5050            // ¥Õ¥¡¥¤¥ë¤Î¾ì¹ç¤Ï¥À¥¦¥ó¥í¡¼¥É¤µ¤»¤ë 
    51             Header("Content-disposition: attachment; filename=".basename($_POST['select_file'])); 
     51            /*Header("Content-disposition: attachment; filename=".basename($_POST['select_file'])); 
    5252            Header("Content-type: application/octet-stream; name=".basename($_POST['select_file'])); 
    5353            Header("Cache-Control: "); 
    5454            Header("Pragma: "); 
     55            */ 
     56            header("Accept-Ranges: none"); 
     57            header("Content-Disposition: attachment; filename=".$_POST['select_file']); 
     58            header("Content-Transfer-Encoding: binary"); 
     59            header("Content-Length: ". strlen($_POST['select_file']) ); 
     60            header("Content-Type: text/octet-stream"); 
    5561        } 
    5662    } 
Note: See TracChangeset for help on using the changeset viewer.