Re: Tesing Gzip files

From: Date: Mon, 25 Apr 2005 00:37:29 +0000
Subject: Re: Tesing Gzip files
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-213769@lists.php.net to get a copy of this message
On Sat, April 23, 2005 12:44 am, Prathaban Mookiah said: > Is there a way to test if a .gz file is in a valid format. Functions like > gzread, gzfile don't seem to care if the file is corrupt or not. > > gzeof also didn't work for me. I guess it is because it does not check for > a > valid .gz termination. Any ideas to go about doing this? Google for gz and gzip and validity tests. Most likely, you'll need to http://php.net/exec to test the files... Or you could maybe add in the functionality to PHP itself with some C hacking :-) -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#213769) next »