Re: opening .Z archive with gzopen

From: Date: Mon, 27 Mar 2006 06:48:42 +0000
Subject: Re: opening .Z archive with gzopen
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-232595@lists.php.net to get a copy of this message
Chris a écrit :
nicolas figaro wrote:
Hi I'm using php 4.3.11 on linux RH9. I'd like to open a .Z archive with gzopen. I looked at the options of gzopen, but I'm not sure there is a way to specify the compression used by compress/uncompress. Has anyone ever tried and done this yet ? (without a system("uncompress $file")
Since a compressed file isn't the same as a gzipp'ed file I'd guess this won't work. This might: http://pear.php.net/package/File_Archive but it doesn't mention .Z files specifically. Hi and thanks for the answer.
The package contains an uncompress function, but the goal was to open the file withuout uncompressing it (like the zcat command or gzopen function). Or I can ask the guys who generates .Z files to generate .gz instead. N F

« previous php.general (#232595) next »