UnGzip Http Stream, how ?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dopy
Forum Newbie
Posts: 1
Joined: Sat Jul 08, 2006 7:40 am

UnGzip Http Stream, how ?

Post by dopy »

Hello,

My PHP script sends headers to another PHP script, and I receive answer from server. It works well, but server sends to my script answer which is gziped.

First question: How could I unzip this gziped answer?
Second question: Could I IMPEL server to send me unziped answers?

Thanks for all, ByE
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

Maybe

Code: Select all

gzuncompress();
Will help you..

http://www.php.net/manual/en/function.gzuncompress.php
Post Reply