<?php
$zipFile = 'c:/Users/HP/Downloads/climate-system/climate-system.zip';
if (!file_exists($zipFile)) {
    die("Zip file not found\n");
}
$zip = new ZipArchive();
if ($zip->open($zipFile) === TRUE) {
    echo "=== Zip Contents ===\n";
    for ($i = 0; $i < $zip->numFiles; $i++) {
        $filename = $zip->getNameIndex($i);
        $stats = $zip->statIndex($i);
        echo "$filename - " . $stats['size'] . " bytes\n";
    }
    $zip->close();
} else {
    echo "Failed to open zip file\n";
}
