Related Links : Search Engine Optimization | | Search Engine Marketing | Online Marketing | Freelance Programmer| SEO Thailand | SEO Expert | SEO services | PHP Programmer Thailand | SEO Tutorial | What is SEO |

  Home Our SEO Services SEO Expert Consultant Php Programmer Scripts| Email : sachin {at} jainsachin {dot} com

PHP | Add an empty directory to the tar/zip archive | Manual | Tutorial | Help

SEO Services



Website Programming in PHP / MYSQL



Friends


    Add an empty directory to the tar/zip archive

    PharData::addEmptyDir

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

    PharData::addEmptyDir — Add an empty directory to the tar/zip archive

    Description

    bool PharData::addEmptyDir ( string $dirname )

    With this method, an empty directory is created with path dirname. This method is similar to ZipArchive::addEmptyDir().

    Parameters

    dirname

    The name of the empty directory to create in the phar archive

    Return Values

    no return value, exception is thrown on failure.

    Examples

    Example #1 A PharData::addEmptyDir() example

    <?php
    try {
        
    $a = new PharData('/path/to/my.tar');

        
    $a->addEmptyDir('/full/path/to/file');
        
    // demonstrates how this file is stored
        
    $b $a['full/path/to/file']->isDir();
    } catch (
    Exception $e) {
        
    // handle errors here
    }
    ?>


    SEO Tutorial / Articles





    Php / Mysql Tutorial



    Articles



      Portfolio


      SEO by Jainsachin