You are here: decompress remote file « PHP Language « IT news, forums, messages
decompress remote file

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация