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

search for in the

ZipArchive::setCommentIndex> <ZipArchive::renameName
Last updated: Fri, 20 Jun 2008

view this page in

ZipArchive::setArchiveComment

(No version information available, might be only in CVS)

ZipArchive::setArchiveComment — Définit le commentaire d'une archive ZIP

Description

mixed ZipArchive::setArchiveComment ( string $comment )

Définit le commentaire d'une archive ZIP.

Liste de paramètres

comment

Le contenu du commentaire

Valeurs de retour

Cette fonction retourne TRUE en cas de succès, FALSE en cas d'échec.

Exemples

Exemple #1 Création d'une archive et définition d'un commentaire

<?php
$zip 
= new ZipArchive;
$res $zip->open('test.zip'ZipArchive::CREATE);
if (
$res === TRUE) {
    
$zip->addFromString('test.txt''contenu du fichier ici');
    
$z->setArchiveComment('commentaire de l\'archive');
    
$zip->close();
    echo 
'ok';
} else {
    echo 
'échec';
}
?>


add a note add a note User Contributed Notes
ZipArchive::setArchiveComment
There are no user contributed notes for this page.

ZipArchive::setCommentIndex> <ZipArchive::renameName
Last updated: Fri, 20 Jun 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites