디렉토리의 모든 파일을 읽어 목록으로 만들기 입니다.
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;
}
게시판 목록
토크
개발과 관련된 어떤 얘기도 괜찮습니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 3301 |
|
10년 전 | 1893 | |
| 3300 | 10년 전 | 1567 | ||
| 3299 |
Gaumi
|
10년 전 | 2056 | |
| 3298 | 10년 전 | 2307 | ||
| 3297 | 10년 전 | 1489 | ||
| 3296 | 10년 전 | 1455 | ||
| 3295 |
다빈치코드777
|
10년 전 | 1632 | |
| 3294 |
|
10년 전 | 1713 | |
| 3293 | 10년 전 | 1967 | ||
| 3292 |
Gaumi
|
10년 전 | 1792 | |
| 3291 | 10년 전 | 1975 | ||
| 3290 |
다빈치코드777
|
10년 전 | 1718 | |
| 3289 | 10년 전 | 5555 | ||
| 3288 |
toptopon
|
10년 전 | 1594 | |
| 3287 |
나르시스1
|
10년 전 | 1780 | |
| 3286 |
플라이SINJI
|
10년 전 | 2259 | |
| 3285 |
basement
|
11년 전 | 1927 | |
| 3284 | 11년 전 | 2067 | ||
| 3283 | 11년 전 | 2485 | ||
| 3282 | 11년 전 | 1621 | ||
| 3281 | 11년 전 | 1298 | ||
| 3280 | 11년 전 | 1675 | ||
| 3279 | 11년 전 | 1606 | ||
| 3278 |
프리랜서퍼블리셔
|
11년 전 | 1748 | |
| 3277 | 11년 전 | 2618 | ||
| 3276 | 11년 전 | 2678 | ||
| 3275 | 11년 전 | 2433 | ||
| 3274 |
호식이와미돌
|
11년 전 | 1749 | |
| 3273 |
|
11년 전 | 1533 | |
| 3272 | 11년 전 | 1253 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기