폴더내의 파일명 출력하는 건데, 코드가 실행이 안되고 멈춰 있습니다. 채택완료
</p><p> <?php
$path = G5_DATA_PATH.'/file/'.$bo_table.'/'.$wr_id.'/'; // 끝에 꼭 경로 구분자
$dh = opendir($path);
$dirs = $files = array();
while ( ($read=readdir($dh))!==false )
{
if ( $read=='.' || $read=='..' ) continue;
if ( is_dir($path.$read) ) { $dirs[] = $read; } else { $files[] = $read; }
}
for ($c=0; $c < count($files); $c++) {
echo "<img src=".$path."".$files[$c]." width=200 />";
echo " ";
}
?> </p><p>
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인전체 질문 목록
답변대기
답변대기
답변대기
답변대기
답변대기
답변대기
답변대기
답변대기
채택
답변대기
답변대기
답변대기
답변대기
채택
채택
답변대기
답변대기
답변대기
채택