Очень лаконичный код для прохождения по всем файлам и директориям на PHP:
$path = realpath('dir/'); $objects = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path), RecursiveIteratorIterator::SELF_FIRST); foreach($objects as $name => $object) { if(strpos($name, ".html") !== false) echo "$name <br>"; }
В данном примере происходит проход по всем вложенным директориям и поиск файлов с расширением *.html.Related: virginia doc releasing inmates 2022, mlp a new generation fanfiction, bosch microwave door won’t open, was there a candy called chocolate babies, samira ahmed husband brian millar, warrior cats hawkfrost x ivypool, statesboro herald arrests 2021, what is methylamine used for legally, magnolia funeral home obituaries corinth, ms, should i hire carolina kkh, servuction model in airline industry, why swimming is important to seafarers, chris scarfo ferry, pastor komolafe manchester remarries, how to authenticate a continental currency coin,
Читать далее...