|
Posted by Richard Lynch on 10/12/49 11:14
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
Navigation:
[Reply to this message]
|