1. Yol:
$path="../log/"; if(is_dir($path)){ if($open_path = opendir($path)){ while($file = readdir($open_path)){ echo '<a href="' . $path . "" . $file . '">' . $file . '</a><br>'; } closedir($open_path); } }
2. Yol:
$path = '../log/'; if(is_dir($path)){ $file_list = glob($path . "*.txt"); foreach($file_list as $key => $value){ $filename = str_replace($path, "", $value); echo $filename; } }