Page Compression

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
bharathlaser
Forum Newbie
Posts: 1
Joined: Thu Mar 24, 2005 11:23 pm

Page Compression

Post by bharathlaser »

Hi,

I am working on PHP on IIS. I am trying to implement compression of web pages when requested. So i am using gzcompress() function after cheking $HTTP_SERVER_VARS["HTTP_ACCEPT_ENCODING"]. But when i print the out put of gzcompress() insted of the page i am getting junk like

".‹xÚíX]o›0}^¤üOQÇZ¥ ˜
Last edited by bharathlaser on Fri Mar 25, 2005 12:20 am, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

headers that say you are encoding the page. ;)


Moved to PHP - Code.
Post Reply