PhpConcept

Developers Tools

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

PclZip User Guide - PclZip::PclZip

Print PDF

Method PclZip::PclZip

Overview

This method is the constructor of the PclZip object.

Synopsis

PclZip($zip_filename)

Arguments

$zip_filename :

 

Filename of the PKZIP archive

Description

This method creates a PclZip object which represent the PKZIP archive. At this point only the filename of the archive is set, and some check done. No action is performed.
While creating the PclZip object the constructor checks that the zlib extension is available. If not the PHP script abort with an error message.

Samples

  require_once('pclzip.lib.php');
  
$archive = new PclZip('archive.zip');
  if (
$archive->create('file.txt data/text.txt folder/') == 0) {
    die(
'Error : '.$archive->errorInfo(true));
  }
 

See Also

create(), add(), extract(), delete()

 

[Back to Methods List]

 

Last Updated on Thursday, 17 December 2009 10:37