[Typo3-debian] Up to date Debian packages available

Steffen Müller steffen at kommwiss.fu-berlin.de
Wed Dec 7 16:22:24 CET 2005


Hi.

Michael Stucki wrote:
> Much easier since every server does have zip but probably not all have this 
> PHP extension:

Well, for Debian it's the oppostite. PHP4 does have zip by default, but
base-system does not have unzip.

> 
> $cmd = $exec_path.'unzip "/tmp/test1.zip" content.xml';
> exec($cmd);
> 
> $content = readfile('/tmp/test1.zip');
> unlink('/tmp/test1.zip');
> 

I personally dislike exec()
It will open a process on the server for each openoffice file. You maybe
will loose performance.
Anyways, this may fail in safe_mode if users are not allowed to change
safe_mode_exec_dir entries. Are there some official TYPO3 safemode
condition requirements?

How about implementing both?

if(is_phpmod_zip) {
	zipopen();
	}
else {
	exec(unzip);
}

-- 
cheers,
Steffen



More information about the TYPO3-debian mailing list