<?php
	$filePath = './'; // 파일을 찾을 경로
	if ($handle = opendir($filePath)) {
	while (false !== ($entry = readdir($handle))) {
	if($entry == '.') continue;
	if($entry == '..') continue;
	 
	$_fileNameWithPath = $filePath . DIRECTORY_SEPARATOR . $entry;
	echo '파일명: '.$entry;
	echo ', 파일명(경로): '.$_fileNameWithPath.'<br>'.PHP_EOL;
	  }
	  closedir($handle);
	}
	 
	?>