PhpConcept

Developers Tools

  • Increase font size
  • Default font size
  • Decrease font size
Home PclZip User Guide

PclZip User Guide - PCLZIP_OPT_ADD_PATH

Print PDF

PCLZIP_OPT_ADD_PATH

This argument gives the ability to insert a path while files are extracted or archived. This will allow to archive the file 'file.txt' with the path 'backup/file.txt', or extract the file 'data/file.txt' with path 'folder/data/file.txt'.
The value is a single file path string.

      $list $archive->create("file.txt,image.gif",
                               
PCLZIP_OPT_ADD_PATH"backup"); 

This argument can be used with 'create()', 'add()' and'extract()' methods.

 

[Optional Arguments List]

 

Last Updated on Thursday, 17 December 2009 22:35