privWriteFileHeader example

// ----- Look for normal compression         else {
          // ----- Compress the content           $v_content = @gzdeflate($v_content);

          // ----- Set header parameters           $p_header['compressed_size'] = strlen($v_content);
          $p_header['compression'] = 8;
        }

        // ----- Call the header generation         if (($v_result = $this->privWriteFileHeader($p_header)) != 1) {
          @fclose($v_file);
          return $v_result;
        }

        // ----- Write the compressed (or not) content         @fwrite($this->zip_fd, $v_content$p_header['compressed_size']);

        }

      }

      
Home | Imprint | This part of the site doesn't use cookies.