reading file contents after using gzuncompress

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
clem_c_rock
Forum Commoner
Posts: 46
Joined: Mon Jun 07, 2004 9:18 am

reading file contents after using gzuncompress

Post by clem_c_rock »

Hello,

I'm trying to read the contents of a compressed file. If I uncompress the contents of the file using gzuncompress and then try to read it I get the usual goobly gook when I echo the contents in this manner:

$buffer = gzuncompress( $buffer, $size ) ;

echo "<p>buffer-->>$buffer<hr>";

Is there anyway to further decode the contents of the file?


Thanks,
Clem C
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

What are you trying to uncompress?
Post Reply