php: Zip öffnet keine archive..

Seite 1 von 1 - Forum: Coding Stuff auf overclockers.at

URL: https://www.overclockers.at/coding-stuff/php_zip_oeffnet_keine_archive_116470/page_1 - zur Vollversion wechseln!


semteX schrieb am 05.06.2004 um 23:39

Code: PHP
<?php

$zip = zip_open("test.zip");

if ($zip) {

   while ($zip_entry = zip_read($zip)) {
       echo "Name:              " . zip_entry_name($zip_entry) . "\n";
       echo "Actual Filesize:    " . zip_entry_filesize($zip_entry) . "\n";
       echo "Compressed Size:    " . zip_entry_compressedsize($zip_entry) . "\n";
       echo "Compression Method: " . zip_entry_compressionmethod($zip_entry) . "\n";
       echo "\n";
   }
   zip_close($zip);
}

?>

es gibt eine "test.zip" die sich in diesem Verzeichniss befindet....

dennoch kommt immer nur: Warning: zip_open() Cannot open zip archive test.zip in D:\xampp\htdocs\ziptest.php on line 3

ich checks ned.

Apache/2.0.48 (Win32) mod_ssl/2.0.48 OpenSSL/0.9.7c PHP/4.3.4


semteX schrieb am 06.06.2004 um 00:18

solved: der will absolute pfade der hund...


Spikx schrieb am 06.06.2004 um 00:21

hm, wie absolut? Im Beispiel auf php.net is es ja auch zB nur "/tmp/test.zip"


semteX schrieb am 06.06.2004 um 00:29

Zitat von Spikx
hm, wie absolut? Im Beispiel auf php.net is es ja auch zB nur "/tmp/test.zip"
ja

das stimmt

unter linux / unix!

unter windows muss das heissen c:/www/blabla/test.zip

mich hats auch gröber verwirrt...




overclockers.at v4.thecommunity
© all rights reserved by overclockers.at 2000-2025