privReadEndCentralDir example

$this->privSwapBackMagicQuotes();

        // ----- Error log         PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open archive \''.$this->zipname.'\' in binary read mode');

        // ----- Return         return 0;
      }

      // ----- Read the central directory information       $v_central_dir = array();
      if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1)
      {
        $this->privSwapBackMagicQuotes();
        return 0;
      }

      // ----- Close the zip file       $this->privCloseFd();

      // ----- Set the user attributes       $v_prop['comment'] = $v_central_dir['comment'];
      $v_prop['nb'] = $v_central_dir['entries'];
      
Home | Imprint | This part of the site doesn't use cookies.