PhpConcept

Developers Tools

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

PclZip User Guide - PCLZIP_OPT_SET_CHMOD

Print PDF

PCLZIP_OPT_SET_CHMOD

This argument gives the ability to modify the file access rights just after the extraction. On *NIX systems, the file access management and the file owner (system attribute) does not allow to access all the files from anywhere. In particular, the user which owns the PHP process will give its credentials to the extracted files, and sometimes will forbid the access to the file to other users. The goal of this arguments is to try to change a little this constraint, by changing the access write, knowing that it can not change the file owner.
The value is a single octal value (for example 0777).

  $list $archive->extract(PCLZIP_OPT_SET_CHMOD0777);

This argument can be used with 'extract()' and 'extractByIndex()' methods.

*** This argument was not fully tested and should be considered as EXPERIMENTAL.

 

[Optional Arguments List]

 

Last Updated on Thursday, 17 December 2009 23:25