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

search for in the

ZipArchive::statIndex> <ZipArchive::setCommentIndex
Last updated: Fri, 10 Oct 2008

view this page in

ZipArchive::setCommentName

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

ZipArchive::setCommentNameSetzt einen Eintragskommentar, der via Eintragsnamen bestimmt wird.

Beschreibung

mixed ZipArchive::setCommentName ( string $name , string $comment )

Setzt einen Eintragskommentar, der via Eintragsnamen bestimmt wird.

Parameter-Liste

name

Name des Eintrags.

comment

Der Inhalt des Kommentars.

Rückgabewerte

Gibt bei Erfolg TRUE zurück, im Fehlerfall FALSE.

Beispiele

Beispiel #1 Ein Archiv öffnen und für einen Eintrag einen Kommentar hinzufügen

<?php
$zip 
= new ZipArchive;
$res $zip->open('test.zip');
if (
$res === TRUE) {
    
$z->setCommentName('eintrag1.txt''Neuer Eintragskommentar');
    
$zip->close();
    echo 
'ok';
} else {
    echo 
'Fehler';
}
?>


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

ZipArchive::statIndex> <ZipArchive::setCommentIndex
Last updated: Fri, 10 Oct 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites