디렉토리의 모든 파일을 읽어 목록으로 만들기 입니다.
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;
}
게시판 목록
토크
개발과 관련된 어떤 얘기도 괜찮습니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 3211 | 9년 전 | 1123 | ||
| 3210 |
전갈자리남자
|
9년 전 | 969 | |
| 3209 | 9년 전 | 1254 | ||
| 3208 |
|
9년 전 | 1652 | |
| 3207 |
|
9년 전 | 1718 | |
| 3206 |
PlayPixel
|
9년 전 | 1030 | |
| 3205 | 9년 전 | 1036 | ||
| 3204 | 9년 전 | 1403 | ||
| 3203 |
kiplayer
|
9년 전 | 1808 | |
| 3202 | 9년 전 | 1035 | ||
| 3201 | 9년 전 | 1525 | ||
| 3200 | 9년 전 | 939 | ||
| 3199 | 9년 전 | 1709 | ||
| 3198 | 9년 전 | 1399 | ||
| 3197 | 9년 전 | 1210 | ||
| 3196 | 9년 전 | 1597 | ||
| 3195 |
|
9년 전 | 1100 | |
| 3194 | 9년 전 | 955 | ||
| 3193 |
|
9년 전 | 1022 | |
| 3192 | 9년 전 | 1143 | ||
| 3191 |
|
9년 전 | 864 | |
| 3190 | 9년 전 | 772 | ||
| 3189 |
|
9년 전 | 987 | |
| 3188 |
PASKRAN
|
9년 전 | 858 | |
| 3187 | 9년 전 | 843 | ||
| 3186 |
|
9년 전 | 960 | |
| 3185 | 9년 전 | 950 | ||
| 3184 |
|
9년 전 | 943 | |
| 3183 |
|
9년 전 | 778 | |
| 3182 |
|
9년 전 | 1161 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기