PHP zip_entry_filesize() fonksiyonu

Tanım ve Kullanım

zip_entry_filesize() fonksiyonu, sıkıştırılmadan önceki zip dosyasının orijinal boyutunu döndürür.

Sözdizimi

zip_entry_filesize(zip_entry)
Parametreler Açıklama
zip_entry Gerekli. Okunacak zip projesi kaynağını (zip_read() ile açılan zip projesi) belirler.

Örnek

<?php
$zip = zip_open("test.zip");
if ($zip)
  {
  while ($zip_entry = zip_read($zip))
    {
    echo "<p>";
    echo "Ad: " . zip_entry_name($zip_entry) . "<br />";
    echo "Özgün boyut: " . zip_entry_filesize($zip_entry);;
    echo "</p>";
    }
  zip_close($zip);
  }
?>

Çıktı:

Ad: ziptest.txt
Özgün boyut: 68
Ad: htmlziptest.html
Özgün boyut: 159