Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] zip, wielkość archiwum, nie podaje
Lejto
post 16.06.2009, 15:57:18
Post #1





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 48
Dołączył: 23.05.2007

Ostrzeżenie: (0%)
-----


Mam kod który ma pobierać wielkość danego archiwum
  1. <?php
  2. $zip = zip_open("tes.zip");
  3.  
  4. if ($zip)
  5.  {
  6.  while ($zip_entry = zip_read($zip))
  7.    {
  8.    echo "<p>";
  9.    echo "Name: " . zip_entry_name($zip_entry) . "<br />";
  10.    echo "Original size: " . zip_entry_filesize($zip_entry);
  11.    echo "</p>";
  12.    }
  13.  zip_close($zip);
  14.  }
  15. ?>

i otrzymuje taki błąd
Kod
Warning: zip_read() expects parameter 1 to be resource, integer given in J:\Serv\www\bal\zip.php on line 29

Warning: zip_close() expects parameter 1 to be resource, integer given in J:\Serv\www\bal\zip.php on line 36


--------------------
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 24.07.2025 - 20:03