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

search for in the

ZipArchive::addFile> <ZipArchive
[edit] Last updated: Fri, 23 Mar 2012

view this page in

ZipArchive::addEmptyDir

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

ZipArchive::addEmptyDirYeni bir dizin ekler

Açıklama

bool ZipArchive::addEmptyDir ( string $dizin )

Arşive boş bir dizin ekler.

Değiştirgeler

dizin

Eklenecek dizinin ismi.

Dönen Değerler

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

Örnekler

Örnek 1 - Bir arşivde boş bir dizin oluşturmak

<?php
$zip 
= new ZipArchive;
if (
$zip->open('test.zip') === TRUE) {
    if(
$zip->addEmptyDir('newDirectory')) {
        echo 
'Kök dizin oluşturuldu';
    } else {
        echo 
'Dizin oluşturulamadı';
    }
    
$zip->close();
} else {
    echo 
'başarısız';
}
?>


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

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