디렉토리의 모든 파일을 읽어 목록으로 만들기 입니다.
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;
}
게시판 목록
토크
개발과 관련된 어떤 얘기도 괜찮습니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 3570 |
|
4년 전 | 4756 | |
| 3569 |
|
4년 전 | 1681 | |
| 3568 |
|
4년 전 | 1478 | |
| 3567 |
|
4년 전 | 1484 | |
| 3566 |
|
4년 전 | 1201 | |
| 3565 | 4년 전 | 1028 | ||
| 3564 |
|
4년 전 | 1154 | |
| 3563 |
|
5년 전 | 1065 | |
| 3562 |
|
5년 전 | 1189 | |
| 3561 | 5년 전 | 963 | ||
| 3560 | 5년 전 | 954 | ||
| 3559 | 5년 전 | 832 | ||
| 3558 |
Arm코리아
|
5년 전 | 1427 | |
| 3557 |
엑스이블루
|
5년 전 | 1392 | |
| 3556 | 5년 전 | 4613 | ||
| 3555 | 5년 전 | 3522 | ||
| 3554 | 5년 전 | 2941 | ||
| 3553 | 5년 전 | 2895 | ||
| 3552 | 5년 전 | 3650 | ||
| 3551 |
coreabot
|
5년 전 | 2045 | |
| 3550 | 5년 전 | 3130 | ||
| 3549 | 5년 전 | 3440 | ||
| 3548 | 5년 전 | 2491 | ||
| 3547 | 5년 전 | 2572 | ||
| 3546 |
bomiFather
|
5년 전 | 2541 | |
| 3545 |
|
5년 전 | 2666 | |
| 3544 |
|
6년 전 | 2684 | |
| 3543 | 6년 전 | 2805 | ||
| 3542 | 6년 전 | 3117 | ||
| 3541 |
wiset
|
6년 전 | 1448 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기