zip_enrty_read fails to return data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'm trying to write the contents of a zip file to disk. Unfortunately
the script creates zero length files. The problem has to be with
zip_entry_read below...

	$zipFile = zip_open($uploadFile);
	$zipEntry = zip_read($zipFile)
      $filePointer = fopen($outputXLSFile, 'w+b');
	$fileBuffer = zip_entry_read($zipEntry,
zip_entry_filesize($zipEntry));
	fwrite($filePointer, $fileBuffer);
	fclose($filePointer);

Thoughts?

Thanks in advance!
				

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux