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, 24 Jun 2011

view this page in

ZipArchive::setCommentName

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

ZipArchive::setCommentNameتنظیم توضیح ورودی با نام

Description

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

تنظیم توضیح ورودی با نام.

Parameters

name

نام ورودی.

comment

محتوای توضیح.

Return Values

Returns TRUE on success or FALSE on failure.

Examples

Example #1 باز کردن آرشیو و تنظیم توضیح برای ورودی

<?php
$zip 
= new ZipArchive;
$res $zip->open('test.zip');
if (
$res === TRUE) {
    
$zip->setCommentName('entry1.txt''new entry comment');
    
$zip->close();
    echo 
'ok';
} else {
    echo 
'failed';
}
?>


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 | sitemap | contact | advertising | mirror sites