PhpConcept

Developers Tools

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

PclZip User Guide - PCLZIP_OPT_COMMENT

Print PDF

PCLZIP_OPT_COMMENT

This argument gives the ability to set a comment in the PKZIP archive. If a comment already exists, this comment will replace the existing one.

    $archive = new PclZip('test.zip');
    
$list $archive->create("data"PCLZIP_OPT_COMMENT"Add a comment");
    if (
$list == 0) {
      echo 
"ERROR : ".$archive->errorInfo(true);
    }
 

See also PCLZIP_OPT_ADD_COMMENT and PCLZIP_OPT_PREPEND_COMMENT

 

[Optional Arguments List]

 

Last Updated on Friday, 18 December 2009 13:19