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

search for in the

ZipArchive::setArchiveComment> <ZipArchive::renameIndex
Last updated: Fri, 10 Oct 2008

view this page in

ZipArchive::renameName

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

ZipArchive::renameName名前を使用してエントリ名を変更する

説明

bool ZipArchive::renameName ( string $name , string $newname )

名前を使用して、エントリ名を変更します。

パラメータ

name

名前を変更するエントリの名前。

newname

新しい名前。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

例1 エントリ名の変更

<?php
$zip 
= new ZipArchive;
$res $zip->open('test.zip');
if (
$res === TRUE) {
    
$zip->renameName('currentname.txt','newname.txt');
    
$zip->close();
} else {
    echo 
'失敗、コード:' $res;
}
?>


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

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