<?php
echo "<h2>📂 當前資料夾檔案清單</h2>";
echo "路徑: " . getcwd() . "<br><hr>";

// 列出所有檔案
$files = scandir('.');
echo "<ul>";
foreach ($files as $file) {
    if ($file != "." && $file != "..") {
        echo "<li>" . $file . "</li>";
    }
}
echo "</ul>";
?>