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

search for in the

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

view this page in

ZipArchive::setArchiveComment

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

ZipArchive::setArchiveCommentBir ZIP arşivine açıklama ekler

Açıklama

mixed ZipArchive::setArchiveComment ( string $açıklama )

Bir ZIP arşivine açıklama ekler.

Değiştirgeler

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 oluşturup bir açıklama eklemek

<?php
$zip 
= new ZipArchive;
$res $zip->open('test.zip'ZipArchive::CREATE);
if (
$res === TRUE) {
    
$zip->addFromString('test.txt''Bu dizge dosyanın içeriğidir.');
    
$zip->setArchiveComment('Yeni arşiv açıklaması');
    
$zip->close();
    echo 
'Tamam';
} else {
    echo 
'Olmadı';
}
?>


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

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