Re: [PHP] Tesing Gzip files

2005-04-24 Thread Richard Lynch
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

[PHP] Tesing Gzip files

2005-04-23 Thread Prathaban Mookiah
Hello, 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? Thanks in

Re: [PHP] Tesing Gzip files

2005-04-23 Thread The Disguised Jedi
I'd generate an MD5 sum on a file you know is valid, and compare it against that in your script. On 4/23/05, Prathaban Mookiah [EMAIL PROTECTED] wrote: Hello, 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