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!
Follwoing is code I am using for reading zip and writing in another file.
But it do not read complete file.It may be filesize problem.
My zlib version is 1.2.0.7
PHP Version 4.3.3
Apache 2.0
you shouldn't use filesize($filename) as a parameter to gzread:
PHP Manual wrote:
gzread() reads up to length bytes from the gz-file pointer referenced by zp. Reading stops when length (uncompressed) bytes have been read or EOF is reached, whichever comes first.