디렉토리의 모든 파일을 읽어 목록으로 만들기 입니다.
function listFile($dir, $file_type)
{
chdir($dir);
if (!$file_type)
$ls_str = " ls -R * ";
else
$ls_str = " ls -R *." . $file_type;
$fp = popen($ls_str, "r");
while(!feof($fp)){
$line = fgets($fp,50);
$line = trim($line);
if(substr($line,strlen($line)-1,1) == ":"){ //디렉토리 처리부분
$subdir = $line;
$subdir = substr($subdir,0,strlen($line)-1) . "/";
}
$htmlfile = explode(".",$line); //html파일 처리부분
if($htmlfile[1] == "html"){
$fullpath = $subdir . $line;
}
}
pclose($fp);
return $fullpath;
}
게시판 목록
토크
개발과 관련된 어떤 얘기도 괜찮습니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 3120 | 9년 전 | 811 | ||
| 3119 | 9년 전 | 1474 | ||
| 3118 | 9년 전 | 1410 | ||
| 3117 | 9년 전 | 1099 | ||
| 3116 | 9년 전 | 718 | ||
| 3115 | 9년 전 | 733 | ||
| 3114 | 9년 전 | 679 | ||
| 3113 | 9년 전 | 876 | ||
| 3112 | 9년 전 | 1431 | ||
| 3111 | 9년 전 | 1215 | ||
| 3110 | 9년 전 | 924 | ||
| 3109 | 9년 전 | 1296 | ||
| 3108 | 9년 전 | 957 | ||
| 3107 |
|
9년 전 | 793 | |
| 3106 | 9년 전 | 1141 | ||
| 3105 | 9년 전 | 2732 | ||
| 3104 |
o1o111
|
9년 전 | 1263 | |
| 3103 | 9년 전 | 619 | ||
| 3102 | 9년 전 | 532 | ||
| 3101 | 9년 전 | 723 | ||
| 3100 | 9년 전 | 566 | ||
| 3099 |
크레용웍스
|
9년 전 | 620 | |
| 3098 | 9년 전 | 924 | ||
| 3097 | 9년 전 | 840 | ||
| 3096 | 9년 전 | 1108 | ||
| 3095 |
|
9년 전 | 918 | |
| 3094 | 9년 전 | 698 | ||
| 3093 | 9년 전 | 611 | ||
| 3092 | 9년 전 | 588 | ||
| 3091 | 9년 전 | 715 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기