2022-01-28 指定したディレクトリの中のファイル一覧を取得する PHP <?php foreach(glob('/var/my-project/file/*') as $file){ echo $file }