[Typo3-debian] Up to date Debian packages available

Steffen Müller steffen at mail.kommwiss.fu-berlin.de
Tue Dec 6 14:00:55 CET 2005


Hi.

On 12/06/2005 08:33 AM Michael Stucki wrote:
> 
> Bottomline: Instead of creating such packages, I will work on better Zip
> integration that doesn't rely on libunzipped.
> 

Needs zip to be enabled in PHP:

<?php

# Open zip file and get content
# $archive	-> zip archive
# $content	-> content of oo document

$archive = '/tmp/test1.zip';

$zip = zip_open($archive);

if ($zip) {
	while ($zip_entry = zip_read($zip)) {
		if (zip_entry_name($zip_entry) == 'content.xml') {		
			if (zip_entry_open($zip, $zip_entry, "r")) {
				$content = zip_entry_read($zip_entry, zip_entry_filesize($zip_entry));
				zip_entry_close($zip_entry);
				}
			}
		}
	zip_close($zip);
	}
echo $content. "\n";
?>

-- 
cheers,
Steffen



More information about the TYPO3-debian mailing list