You are here: Re: PHP 4+ - 5.0.4, Windows XP and Gzip - HELP « PHP Programming Language « IT news, forums, messages
Re: PHP 4+ - 5.0.4, Windows XP and Gzip - HELP

Posted by R. Rajesh Jeba Anbiah on 10/14/05 14:42

comp.lang.php wrote:
<snip>
> I was told it was "so easy" to use gzip.. so how do I use gzip?
<snip>

Glad that you're sorted out already. Anyway, if I'm right you were
actually trying to use command line version of gzip.

If you have zlib enabled (it must be enabled as you could use
Archive_zip), you can use gzip functions <http://in.php.net/zlib>. As
the usernotes suggest, possibly the easiest way to create gzipped file
is using URL wrapper:

file_put_contents('compress.zlib://hello.txt.gz', 'Hello');

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

 

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

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