downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/intro.zlib.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/book.zlib.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'intro.zlib.php',
   
1 => 'Introduction',
  ),
 
'up' =>
  array (
   
0 => 'book.zlib.php',
   
1 => 'Zlib Compression',
  ),
 
'prev' =>
  array (
   
0 => 'book.zlib.php',
   
1 => 'Zlib',
  ),
 
'next' =>
  array (
   
0 => 'zlib.setup.php',
   
1 => 'Installing/Configuring',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div id="intro.zlib" class="preface">
  <h1 class="title">Introduction</h1>
  <p class="para">
   This module enables you to transparently read and write
   gzip (.gz) compressed files, through versions of most of
   the <a href="book.filesystem.php" class="link">filesystem</a> functions
   which work with gzip-compressed files (and uncompressed files,
   too, but not with sockets).
  </p>
  <blockquote><p><b class="note">Note</b>:
  
    Version 4.0.4 introduced a fopen-wrapper for <var class="filename">.gz</var>-files, so that
    you can use a special <var class="filename">zlib:</var> URL to access
    compressed files transparently using the normal f*() file access
    functions if you prefix the filename or path with
    <var class="filename">zlib:</var> when calling <a href="function.fopen.php" class="function">fopen()</a>. This
    feature requires a C runtime library that provides the
    <i>fopencookie()</i> function. Up to now the GNU libc
    seems to be the only library that provides this feature.
   <br />
  
    In PHP 4.3.0, <var class="filename">zlib:</var> has been changed to
    <var class="filename">compress.zlib://</var> to prevent ambiguities with
    filenames containing &#039;<i>:</i>&#039; characters. The
    <i>fopencookie()</i> function is no longer required.
    More information is available in the section about
    <a href="wrappers.compression.php" class="xref">Compression Streams</a>.
   <br />
  </p></blockquote>
 </div><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites