|
Posted by roN @ work on 07/01/05 09:32
Hi,
in my script i wanna download a gz file, decompress it and compare its
content to a string from my php-script. how would I do it? I tried:
$relayblacklist =
gzread("http://wget-mirrors.uceprotect.net/uce-pfsm-1/access.gz", 10000);
if(stristr($relayblacklist,$relay)==false)
echo "no such entry!<br>\n";
but I got: Warning: gzread(): supplied argument is not a valid stream
resource in /srv/www/htdocs/web2/html/php/nospam/pop.php on line 190
I think I first have download the file to a local one and then decompress
it. Is that right? How to download a binary file? I' just found file() but
how to handle this with binary?
Than you!
My server uses php 4.3.3
Navigation:
[Reply to this message]
|