I don't know about this subject, but i see tha manual php. If want to read files, you can use zip-functions and the module gz. But i don't know nothing about others format.
If you don't have the php manual, dowload it! Here, you'll find the functions and how they works. But if don't want to download them, i write theirs names and you can search using 'google' or something to find out some example,ok?
Zip_close — Close a Zip File Archive
zip_entry_close — Close a Directory Entry
zip_entry_compressedsize — Retrieve the Compressed Size of a Directory Entry
zip_entry_compressionmethod — Retrieve the Compression Method of a Directory Entry
zip_entry_filesize — Retrieve the Actual File Size of a Directory Entry
zip_entry_name — Retrieve the Name of a Directory Entry
zip_entry_open — Open a Directory Entry for Reading
zip_entry_read — Read From an Open Directory Entry
zip_open — Open a Zip File Archive
zip_read — Read Next Entry in a Zip File Archive
gzclose — cierra un puntero a archivo-gz abierto
gzcompress — Compress a string
gzdeflate — Deflate a string
gzencode — Create a gzip compressed string
gzeof — prueba el fin-de-archivo de un puntero de archivo-gz
gzfile — lee el archivo gz completo en un arreglo
gzgetc — toma caracteres de un archivo-gz
gzgets — toma una linea del archivo apuntado
gzgetss — toma una linea del archivo-gz apuntado y le quita los tags HTML
gzinflate — Inflate a deflated string
gzopen — open gz-file
gzpassthru — Devuelve el remanente de datos de un fichero-gz
gzputs — escribe al fichero-gz que se apunta
gzread — Lee archivos-gz en modo Binario
gzrewind — Reposiciona al puntero de archivo-gz, al inicio de aquel
gzseek — Posiciona el puntero del archivo-gz
gztell — Indica la posición de lecto-escritura en el archivo
gzuncompress — Uncompress a deflated string
gzwrite — Escritura de ficheros gz en modo Binario
readgzfile — devuelve el fichero-gz
(ups, i forget that my help is in spanish!, sorry!)
i hope that all that help you! 🙂
Router