File_Archive: gzinflate()
| From: | Mark Steudel | Date: | Fri, 21 Jul 2006 00:54:36 +0000 |
| Subject: | File_Archive: gzinflate() | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-24716@lists.php.net to get a copy of this message | ||
Warning: gzinflate() [function.gzinflate]: buffer error in
C:\php\PEAR\File\Archive\Reader\Zip.php on line 268
I'm getting the above error when I try and unzip a file.
Here's my code:
File_Archive::extract( File_Archive::read(
$path.'/'.$fileData['name'].'/'), File_Archive::toFiles($path) );
If I do:
echo $path.'/'.$fileData['name'].'/';
I get:
c:/domains/domain/wwwroot/resources/applications/46/series/31/modules/66
/components.zip/
Now I can take that path and create a separate file:
<?php
$file = 'components.zip';
$path =
'c:/domains/domain/wwwroot/resources/applications/46/series/31/modules/6
6';
echo $path.'/'.$file.'/';
File_Archive::extract(
File_Archive::read($path.'/'.$file.'/'),
File_Archive::toFiles($path)
);
The output is:
c:/domains/domain/wwwroot/resources/applications/46/series/31/modules/66
/components.zip/
And this works. I can't figure out what the difference might be.
Thanks, Mark
--------------------------------------------------------------
Mark Steudel
Web Applications Developer
555 Dayton St
Suite A
Edmonds, WA 98020
p: 425.741.7014
e: mark@netriver.net
w: http://www.netriver.net