You are here: Re: Zip functions work on one server but not on the other !!!! « All PHP « IT news, forums, messages
Re: Zip functions work on one server but not on the other !!!!

Posted by -Lost on 08/23/06 17:10

> -Lost wrote:
>> "Pankaj" <panahuja@gmail.com> wrote in message
>> news:1156256284.273970.182270@75g2000cwc.googlegroups.com...
>>
>> >I did a phpinfo on both the servers and they both have the same zip
>> > related entries. I do not think there is anything special on either one
>> > of those.
>>
>> I am guessing the same "zip related entries" said "ZLib Support", aye?
>>
>> Well, then I Googled for "pclzip" and found http://www.phpconcept.net/
>>
>> So, you are using PclZip which uses the built-in zlib compression in Windows-systems
>> and
>> with "--with-zlib [=DIR]" on Linux-based systems.
>>
>> See what a bit of subject line finagling and a heartfelt attempt will get you?
>>
>> To recap, as long as the system has zlib support you are golden! I imagine the systems
>> you uploaded it to were *NIX with no zlib support.
>>
>> Be well.
>>
>> -Lost


"Pankaj" <panahuja@gmail.com> wrote in message
news:1156324557.291516.306400@75g2000cwc.googlegroups.com...
>I have zlib support enabled on both the servers.

Wild shot in the dark here, but try:

die(zlib_get_coding_type());

Mine gave me a result of "gzip", *ONLY* after I enabled zlib.output_compression in my PHP
INI file.

Maybe, there are two different compression methods and one of them fails? Or perhaps two
different versions and the script you are using is not compatible with it.

For example, I could not get your script to run *at all*. I kept having to fix code that
depended on a specific type of Apache configuration and finally got to a point I did not
know what to fix.

Can you run the minimal script in the PHP manual under "Zlib Compression Functions"? It
ran fine for me.

Let us keep on trucking, I would love to know why this is not working for you.

-Lost

 

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

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