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

search for in the

ZipArchive::statIndex> <ZipArchive::setCommentIndex
[edit] Last updated: Fri, 17 May 2013

view this page in

ZipArchive::setCommentName

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

ZipArchive::setCommentNameİsmi belirtilen girdiye bir açıklama ekler

Açıklama

mixed ZipArchive::setCommentName ( string $isim , string $açıklama )

İsmi belirtilen girdiye bir açıklama ekler.

Değiştirgeler

isim

Girdinin ismi.

açıklama

Açıklamanın içeriği.

Dönen Değerler

Başarı durumunda TRUE, başarısızlık durumunda FALSE döner.

Örnekler

Örnek 1 - Bir arşiv açıp bir girdiye açıklama eklemek

<?php
$zip 
= new ZipArchive;
$res $zip->open('test.zip');
if (
$res === TRUE) {
    
$zip->setCommentName('entry1.txt''yeni girdi açıklaması');
    
$zip->close();
    echo 
'Tamam';
} else {
    echo 
'Olmadı';
}
?>


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

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