PHP 下拉檔案選單

n";
    foreach (new DirectoryIterator('/var/www/b30_bak') as $file) {
    //指定web server上的路徑位置
        $filetype = pathinfo($file, PATHINFO_EXTENSION);
        if (in_array(strtolower($filetype), $filetypes)) {
        //如果符合副檔名設定才秀出來
            echo 'n";
        }
    }
    echo '
'; ?>
This entry was posted in PHP. Bookmark the permalink.