PhpConcept

Developers Tools

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

PclZip User Guide - PCLZIP_OPT_EXTRACT_IN_OUTPUT

Print PDF

PCLZIP_OPT_EXTRACT_IN_OUTPUT

This argument gives you the ability to extract the content of a file directly in the standard output (like the echo command).

    $archive = new PclZip('test.zip');
    
$list $archive->extract(PCLZIP_OPT_BY_NAME"data/readme.txt",
                              
PCLZIP_OPT_EXTRACT_IN_OUTPUT);
    if (
$list == 0) {
      echo 
"ERROR : ".$archive->errorInfo(true);
    }
 

see also PCLZIP_OPT_EXTRACT_AS_STRING

 

[Optional Arguments List]

 

Last Updated on Friday, 18 December 2009 13:15