Re: Test a zip file for validity

From: Date: Sat, 02 Aug 2003 00:26:37 +0000
Subject: Re: Test a zip file for validity
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-158025@lists.php.net to get a copy of this message
* Thus wrote Ivo Pletikosic (ivo@benetech.org): > Hello all, > > How do I go about checking if a file is a zip file? > > Wrapping the zipinfo utility in php did not help since it does not return an > exit code whether it succeeded or not. I'm assuming the zipinfo your talking about is part of the unzip package. You should use unzip to test the files unzip -t file.zip will check the checksum for each file. 'man unzip' for further details. Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#158025) next »