You are here: Re: [PHP] Query about gzinflate « PHP « IT news, forums, messages
Re: [PHP] Query about gzinflate

Posted by Curt Zirzow on 11/16/05 08:01

On Tue, Nov 15, 2005 at 09:28:22PM -0800, kumar kumar wrote:
> HI
>
> How to uncompress compressed data with php://input
>
> Which one of the following is correct
>
> 1 .$unzip = gzinflate("php://input","r");
> $getdata = fopen($unzip."r");
>
> 2. gzcompress("php://input","r");
>
> $getdata = fopen($unzip."r");
>
> what the best solution help me

neither.

I'm not sure what you expect to happen in both cases. gzinflate
expects a string and returns a string.. which is invalid for
fopen().

with gzcompress (besides that the parameters being wrong) i dont
know how you expect it to uncompress, and it also returns a string
which is invalid for fopen().


perhaps you ment:

1)
$getdata = gzopen('php://input', 'r');

see: http://php.net/gzopen

22
$getdata = fopen('php://filter/gzinflate/resource=php://input');

see: http://php.net/manual/en/filters.compression.php


Curt.
--

 

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

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