Re: Tesing Gzip files
| From: | The Disguised Jedi | Date: | Sun, 24 Apr 2005 02:29:20 +0000 |
| Subject: | Re: Tesing Gzip files | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-213746@lists.php.net to get a copy of this message | ||
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 <prathap@ee.pdn.ac.lk> 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 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 advance.
>
> Cheers,
>
> Prathap
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
The Disguised Jedi
disguised.jedi@gmail.com
Now you have my $0.02. Or .01 Pounds, .014 Euros, or $0.025 CAN. I'm
world-wide BABY!
PHP rocks!
"Knowledge is Power. Power Corrupts. Go to school, become evil"
Disclaimer: Any disclaimer attached to this message may be ignored. However,
I must say that the ENTIRE contents of this message are subject to other's
criticism, corrections, and speculations.
This message is Certified Virus Free