Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > 0afeee9cca140e167a996902b9a677c5 > files > 2363

php-manual-en-4.3.0-2mdk.noarch.rpm

<HTML
><HEAD
><TITLE
>readgzfile</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="PHP Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="Zlib Compression Functions"
HREF="ref.zlib.html"><LINK
REL="PREVIOUS"
TITLE="gzwrite"
HREF="function.gzwrite.html"><LINK
REL="NEXT"
TITLE="Extending PHP 4.0"
HREF="zend.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-1"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.gzwrite.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="zend.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.readgzfile"
></A
>readgzfile</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN99417"
></A
><P
>    (PHP 3, PHP 4 )</P
>readgzfile&nbsp;--&nbsp;Output a gz-file</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN99420"
></A
><H2
>Description</H2
>int <B
CLASS="methodname"
>readgzfile</B
> ( string filename [, int use_include_path])<BR
></BR
><P
> 
     Reads a file, decompresses it and writes it to standard
     output.
    </P
><P
>&#13;     <B
CLASS="function"
>readgzfile()</B
> can be used to read a file which
     is not in gzip format; in this case
     <B
CLASS="function"
>readgzfile()</B
> will directly read from the file
     without decompression.
    </P
><P
> 
     Returns the number of (uncompressed) bytes read from the file. If
     an error occurs, <TT
CLASS="constant"
><B
>FALSE</B
></TT
> is returned and unless the function was
     called as <TT
CLASS="literal"
>@readgzfile</TT
>, an error message is
     printed.
    </P
><P
> 
     The file <TT
CLASS="parameter"
><I
>filename</I
></TT
> will be opened from the
     filesystem and its contents written to standard output.
    </P
><P
>&#13;     You can use the optional second parameter and set it to "1", if
     you want to search for the file in the <A
HREF="configuration.directives.html#ini.include-path"
>include_path</A
>, too.
    </P
><P
>&#13;     See also <A
HREF="function.gzpassthru.html"
><B
CLASS="function"
>gzpassthru()</B
></A
>,
     <A
HREF="function.gzfile.html"
><B
CLASS="function"
>gzfile()</B
></A
>, and <A
HREF="function.gzopen.html"
><B
CLASS="function"
>gzopen()</B
></A
>.
    </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.gzwrite.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="zend.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>gzwrite</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.zlib.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Extending PHP 4.0</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>