디렉토리의 모든 파일을 읽어 목록으로 만들기 입니다.
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;
}
게시판 목록
토크
개발과 관련된 어떤 얘기도 괜찮습니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 3001 |
|
10년 전 | 2102 | |
| 3000 |
solsu1
|
10년 전 | 1463 | |
| 2999 |
|
10년 전 | 2659 | |
| 2998 |
Qstudio
|
10년 전 | 1086 | |
| 2997 | 10년 전 | 2532 | ||
| 2996 |
|
10년 전 | 1824 | |
| 2995 | 10년 전 | 1201 | ||
| 2994 |
|
10년 전 | 1642 | |
| 2993 |
|
10년 전 | 1480 | |
| 2992 |
준짱789
|
10년 전 | 1714 | |
| 2991 | 10년 전 | 2994 | ||
| 2990 |
개발짜증나
|
10년 전 | 1144 | |
| 2989 | 10년 전 | 1399 | ||
| 2988 | 10년 전 | 3071 | ||
| 2987 |
해븐리키스
|
10년 전 | 3049 | |
| 2986 | 10년 전 | 3300 | ||
| 2985 | 10년 전 | 2961 | ||
| 2984 |
|
10년 전 | 1942 | |
| 2983 | 10년 전 | 1854 | ||
| 2982 |
프로그램은어려워
|
10년 전 | 1518 | |
| 2981 |
잘살아보자
|
10년 전 | 1115 | |
| 2980 |
잘살아보자
|
10년 전 | 1089 | |
| 2979 |
잘살아보자
|
10년 전 | 1786 | |
| 2978 | 10년 전 | 2076 | ||
| 2977 | 10년 전 | 3404 | ||
| 2976 |
|
10년 전 | 2533 | |
| 2975 |
|
10년 전 | 1649 | |
| 2974 | 10년 전 | 1595 | ||
| 2973 | 10년 전 | 1926 | ||
| 2972 |
패션리스트
|
10년 전 | 3152 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기