<?php
$file = 'c:/Users/HP/Downloads/climate-system/climate-system/index.php';
$content = file_get_contents($file);
$lines = explode("\n", $content);
foreach ($lines as $idx => $line) {
    if (strpos($line, 'historicalImageTimeSeries') !== false && strpos($line, '<img') !== false) {
        echo "Line " . ($idx + 1) . ": " . trim($line) . "\n";
        $start = max(0, $idx - 30);
        $end = min(count($lines), $idx + 30);
        for ($k = $start; $k < $end; $k++) {
            echo "  " . ($k+1) . ": " . $lines[$k] . "\n";
        }
        echo "---------------------------\n";
    }
}
