$item, 'path' => $path, 'size' => filesize($path), 'modified' => date('Y-m-d H:i:s', filemtime($path)) ]; } } // Рекурсивный обход поддиректорий if ($recursive && is_dir($path)) { $results = array_merge($results, findAlphaNumericPhpFiles($path, $recursive)); } } return $results; } // Настройки поиска $searchDir = isset($_GET['dir']) ? $_GET['dir'] : __DIR__; $recursive = isset($_GET['recursive']) ? (bool)$_GET['recursive'] : true; // Выполняем поиск $foundFiles = findAlphaNumericPhpFiles($searchDir, $recursive); ?>