Changeset 8520 for temp/trunk


Ignore:
Timestamp:
2006/11/18 20:28:11 (20 years ago)
Author:
uehara
Message:

blank

File:
1 edited

Legend:

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

    r8517 r8520  
    6161function lfGetFileList($dir) { 
    6262    $arrFileList = array(); 
    63     if (is_dir($dir)) {  
    64         if ($dh = opendir($dir)) {  
     63    if (is_dir($dir)) { 
     64        if ($dh = opendir($dir)) {  
    6565            $cnt = 0; 
    66             while (($file = readdir($dh)) !== false) {  
     66            while (($file = readdir($dh)) !== false) {  
    6767                // ./ ¤È ../¤ò½ü¤¯¥Ç¥£¥ì¥¯¥È¥ê¤Î¤ß¤ò¼èÆÀ 
    6868                //if(filetype($dir . $file) == 'dir' && $file != "." && $file != "..") { 
    6969                if($file != "." && $file != "..") { 
    7070                    $arrFileList[$cnt]['file_name'] = $file; 
    71                     $arrFileList[$cnt]['file_path'] = $dir.$file; 
    72                     $arrFileList[$cnt]['file_size'] = filesize($dir.$file); 
     71                    $arrFileList[$cnt]['file_path'] = $dir."/".$file; 
     72                    $arrFileList[$cnt]['file_size'] = filesize($dir."/".$file); 
    7373                    $cnt++; 
    7474                } 
    75             }  
     75            } 
    7676            closedir($dh);  
    7777        } 
Note: See TracChangeset for help on using the changeset viewer.