<?php
$dir = 'C:/Users/HP/Downloads/climate-system/';
$it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir));
foreach ($it as $file) {
    if ($file->isFile()) {
        $name = $file->getFilename();
        if (stripos($name, 'index') !== false || stripos($name, 'backup') !== false || stripos($name, 'bak') !== false) {
            echo "File: " . $file->getPathname() . " (Size: " . $file->getSize() . " bytes, Modified: " . date("Y-m-d H:i:s", $file->getMTime()) . ")\n";
        }
    }
}
