要件 あるディレクトリ以下の画像のURLをすべて取得する を、以下を参考に作ってみました。 PHPのglob()がすっごい便利だった件 - IDEA*IDEA 〜 百式管理人のライフハックブログ http://www.ideaxidea.com/archives/2010/04/php_glob.html PHP: glob - Manual http://php.net/manual/ja/function.glob.php コード <?php function scan_image($dir) { $list = $tmp = array(); foreach(glob($dir . '*/', GLOB_ONLYDIR) as $child_dir) { if ($tmp = scan_image($child_dir)) { $list = array_merge($list, $