downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

ZipArchive::getCommentIndex> <ZipArchive::extractTo
[edit] Last updated: Wed, 19 Jun 2013

view this page in

ZipArchive::getArchiveComment

(PHP 5 >= 5.2.0, PECL zip >= 1.1.0)

ZipArchive::getArchiveCommentDevuelve el comentario del archivo ZIP

Descripción

string ZipArchive::getArchiveComment ([ int $flags ] )

Devuelve el comentario del archivo ZIP.

Parámetros

flags

Si las flags se establecen en ZIPARCHIVE::FL_UNCHANGED, el comentario original se devuelve sin cambios.

Valores devueltos

Devuelve el comentario del archivo Zip o FALSE en caso de error.

Ejemplos

Ejemplo #1 Vuelca el comentario del archivo

<?php
$zip 
= new ZipArchive;
$res $zip->open('test_with_comment.zip');
if (
$res === TRUE) {
    
var_dump($zip->getArchiveComment());
    
/* O usando la propiedad del archivo */
    
var_dump($zip->comment);
} else {
    echo 
'falló, código:' $res;
}
?>


add a note add a note User Contributed Notes ZipArchive::getArchiveComment - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites