PhpConcept

Developers Tools

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

PclZip User Guide - PCLZIP_OPT_PREPEND_COMMENT

Print PDF

PCLZIP_OPT_PREPEND_COMMENT

This argument gives the ability to add a comment in the PKZIP archive. If a comment already exists, the added comment is prepend before the existing comment.

    $archive = new PclZip('test.zip');
    
$list $archive->add("data"PCLZIP_OPT_PREPEND_COMMENT"Add a comment before the existing one");
    if (
$list == 0) {
      echo 
"ERROR : ".$archive->errorInfo(true);
    }
 

See also PCLZIP_OPT_COMMENT and PCLZIP_OPT_ADD_COMMENT

 

[Optional Arguments List]

 

Last Updated on Friday, 18 December 2009 13:22