Changeset 8618 for temp/trunk


Ignore:
Timestamp:
2006/11/19 20:42:54 (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

    r8617 r8618  
    1818 * ÀâÌÀ¡¡¡§¥Õ¥¡¥¤¥ëÆÉ¹þ 
    1919 */ 
    20  /* 
    21 function lfReadFile($file) { 
    22     $fp = fopen($file, "r"); 
    23     $read_file = fpassthru($fp);  
    24     fclose($fp);  
    25 } 
    26 */ 
    2720function lfReadFile($filename) {  
    2821    $str = "";  
  • temp/trunk/html/test/uehara/tree.php

    r8616 r8618  
    4949        } else { 
    5050            // ¥Õ¥¡¥¤¥ë¤Î¾ì¹ç¤Ï¥À¥¦¥ó¥í¡¼¥É¤µ¤»¤ë 
    51             header('Content-Disposition: attachment; filename="'. basename($_POST['select_file']) .'"'); 
     51            Header("Content-disposition: attachment; filename=".basename($_POST['select_file'])); 
     52            Header("Content-type: application/octet-stream; name=".basename($_POST['select_file'])); 
     53            Header("Cache-Control: "); 
     54            Header("Pragma: "); 
    5255        } 
    5356    } 
Note: See TracChangeset for help on using the changeset viewer.