Sophie

Sophie

distrib > PLD > ac > amd64 > media > dist > by-pkgid > dd8ef74e7a184506d40e4328053fb785 > files > 3954

php-manual-ro-20051028-1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML
><HEAD
><TITLE
>Stream open options</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Manual PHP"
HREF="index.html"><LINK
REL="UP"
TITLE="Streams Constants"
HREF="streams.constants.html"><LINK
REL="PREVIOUS"
TITLE="Streams Constants"
HREF="streams.constants.html"><LINK
REL="NEXT"
TITLE="FAQ: Întrebãri frecvente"
HREF="faq.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-2"></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"
>Manual PHP</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="streams.constants.html"
ACCESSKEY="P"
>Înapoi</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="faq.html"
ACCESSKEY="N"
>Înainte</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="streams.options"
></A
>Stream open options</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN130691"
></A
>Stream open options&nbsp;--&nbsp;Affects the operation of stream factory functions</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN130694"
></A
><H2
>Description</H2
><P
>&#13;     One or more of these values can be combined using the OR operator.
     <P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><TT
CLASS="constant"
><B
>IGNORE_PATH</B
></TT
></DT
><DD
><P
>&#13;         This is the default option for streams; it requests that the include_path is
         not to be searched for the requested file.
        </P
></DD
><DT
><TT
CLASS="constant"
><B
>USE_PATH</B
></TT
></DT
><DD
><P
>&#13;         Requests that the include_path is to be searched for the requested file.
        </P
></DD
><DT
><TT
CLASS="constant"
><B
>IGNORE_URL</B
></TT
></DT
><DD
><P
>&#13;         Requests that registered URL wrappers are to be ignored when opening the
         stream.  Other non-URL wrappers will be taken into consideration when
         decoding the path.  There is no opposite form for this flag; the streams
         API will use all registered wrappers by default.
        </P
></DD
><DT
><TT
CLASS="constant"
><B
>IGNORE_URL_WIN</B
></TT
></DT
><DD
><P
>&#13;         On Windows systems, this is equivalent to IGNORE_URL.
         On all other systems, this flag has no effect.
        </P
></DD
><DT
><TT
CLASS="constant"
><B
>ENFORCE_SAFE_MODE</B
></TT
></DT
><DD
><P
>&#13;         Requests that the underlying stream implementation perform safe_mode
         checks on the file before opening the file.  Omitting this flag will skip
         safe_mode checks and allow opening of any file that the PHP process
         has rights to access.
        </P
></DD
><DT
><TT
CLASS="constant"
><B
>REPORT_ERRORS</B
></TT
></DT
><DD
><P
>&#13;         If this flag is set, and there was an error during the opening of the file
         or URL, the streams API will call the php_error function for you.  This
         is useful because the path may contain username/password information
         that should not be displayed in the browser output (it would be a
         security risk to do so).  When the streams API raises the error, it first
         strips username/password information from the path, making the error
         message safe to display in the browser.
        </P
></DD
><DT
><TT
CLASS="constant"
><B
>STREAM_MUST_SEEK</B
></TT
></DT
><DD
><P
>&#13;         This flag is useful when your extension really must be able to randomly
         seek around in a stream.  Some streams may not be seekable in their
         native form, so this flag asks the streams API to check to see if the
         stream does support seeking.  If it does not, it will copy the stream
         into temporary storage (which may be a temporary file or a memory
         stream) which does support seeking.
         Please note that this flag is not useful when you want to seek the
         stream and write to it, because the stream you are accessing might
         not be bound to the actual resource you requested.
        </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Not&#227;: </B
>
          If the requested resource is network based, this flag will cause the
          opener to block until the whole contents have been downloaded.
          </P
></BLOCKQUOTE
></DIV
></DD
><DT
><TT
CLASS="constant"
><B
>STREAM_WILL_CAST</B
></TT
></DT
><DD
><P
>&#13;         If your extension is using a third-party library that expects a FILE* or
         file descriptor, you can use this flag to request the streams API to
         open the resource but avoid buffering.  You can then use
         <B
CLASS="function"
>php_stream_cast()</B
> to retrieve the FILE* or
         file descriptor that the library requires.
        </P
><P
>&#13;         The is particularly useful when accessing HTTP URLs where the start
         of the actual stream data is found after an indeterminate offset into
         the stream.
        </P
><P
>&#13;         Since this option disables buffering at the streams API level, you
         may experience lower performance when using streams functions
         on the stream; this is deemed acceptable because you have told
         streams that you will be using the functions to match the underlying
         stream implementation.
         Only use this option when you are sure you need it.
        </P
></DD
></DL
></DIV
>    
    </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="streams.constants.html"
ACCESSKEY="P"
>Înapoi</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Acas&#227;</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="faq.html"
ACCESSKEY="N"
>Înainte</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Streams Constants</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="streams.constants.html"
ACCESSKEY="U"
>Sus</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>FAQ: Întrebãri frecvente</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>