Curso de PHP/Referência à linguagem/Funções de compressão: diferenças entre revisões

[edição não verificada][edição não verificada]
Conteúdo apagado Conteúdo adicionado
mSem resumo de edição
Linha 19:
*bzread — Leitura binary-safe de um arquivo bzip2
*bzwrite — Escrita binary-safe em um arquivo bzip2
 
==ZIP==
 
São funções PHP utilizadas para a manipulação de arquivos compactados do tipo [[w:ZIP|ZIP]].
 
===Funções===
 
*zip_close — Fecha um arquivo ZIP
*zip_entry_close — Fecha o arquivo que está aberto
*zip_entry_compressedsize — Recupera o tamanho compactado do arquivo que está dentro do arquivo ZIP
*zip_entry_compressionmethod — Recupera qual o método de compressão foi utilizado no arquivo
*zip_entry_filesize — Retorna o tamanho de um diretório de entrada
*zip_entry_name — Retorna o nome do arquivo
*zip_entry_open — Abre um arquivo do arquivo ZIP
*zip_entry_read — Lê de um arquivo aberto
*zip_open — Abre um arquivo ZIPado
*zip_read — Lê a próxima entrada em um arquivo ZIPado
*ZipArchive::addEmptyDir — Add a new directory
*ZipArchive::addFile — Adds a file to a ZIP archive from the given path
*ZipArchive::addFromString — Add a file to a ZIP archive using its contents
*ZipArchive::close — Close the active archive (opened or newly created)
*ZipArchive::deleteIndex — delete an entry in the archive using its index
*ZipArchive::deleteName — delete an entry in the archive using its name
*ZipArchive::extractTo — Extract the archive contents
*ZipArchive::getArchiveComment — Returns the Zip archive comment
*ZipArchive::getCommentIndex — Returns the comment of an entry using the entry index
*ZipArchive::getCommentName — Returns the comment of an entry using the entry name
*ZipArchive::getFromIndex — Returns the entry contents using its index.
*ZipArchive::getFromName — Returns the entry contents using its name.
*ZipArchive::getNameIndex — Returns the name of an entry using its index
*ZipArchive::getStream — Get a file handler to the entry defined by its name (read only).
*ZipArchive::locateName — Returns the index of the entry in the archive
*ZipArchive::open — Open a ZIP file archive
*ZipArchive::renameIndex — Renames an entry defined by its index
*ZipArchive::renameName — Renames an entry defined by its name
*ZipArchive::setArchiveComment — Set the comment of a ZIP archive
*ZipArchive::setCommentIndex — Set the comment of an entry defined by its index
*ZipArchive::setCommentName — Set the comment of an entry defined by its name
*ZipArchive::statIndex — Get the details of an entry defined by its index.
*ZipArchive::statName — Get the details of an entry defined by its name.
*ZipArchive::unchangeAll — Undo all changes done in the archive.
*ZipArchive::unchangeArchive — Revert all global changes done in the archive.
*ZipArchive::unchangeIndex — Revert all changes done to an entry at the given index.
*ZipArchive::unchangeName — Revert all changes done to an entry with the given name.
 
==Fontes==
 
*[http://br.php.net/manual/pt_BR/book.bzip2.php PHP: Bzip2 - Manual]
*[http://br.php.net/manual/pt_BR/book.zip.php PHP: Zip - Manual]