Sophie

Sophie

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

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML
><HEAD
><TITLE
>file_put_contents</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="Filesystem Functions"
HREF="ref.filesystem.html"><LINK
REL="PREVIOUS"
TITLE="file_get_contents"
HREF="function.file-get-contents.html"><LINK
REL="NEXT"
TITLE="file"
HREF="function.file.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="function.file-get-contents.html"
ACCESSKEY="P"
>Înapoi</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.file.html"
ACCESSKEY="N"
>Înainte</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.file-put-contents"
></A
>file_put_contents</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN27872"
></A
><P
>    (PHP 5)</P
>file_put_contents&nbsp;--&nbsp;Write a string to a file</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN27875"
></A
><H2
>Description</H2
>int <B
CLASS="methodname"
>file_put_contents</B
> ( string filename, string data [, int flags [, resource context]])<BR
></BR
><P
> 
     Identical to calling <A
HREF="function.fopen.html"
><B
CLASS="function"
>fopen()</B
></A
>, <A
HREF="function.fwrite.html"
><B
CLASS="function"
>fwrite()</B
></A
>,
     and <A
HREF="function.fclose.html"
><B
CLASS="function"
>fclose()</B
></A
> successively. The function returns the
     amount of bytes that were written to the file.
    </P
><P
>&#13;     <VAR
CLASS="parameter"
>flags</VAR
> can take <TT
CLASS="constant"
><B
>FILE_USE_INCLUDE_PATH</B
></TT
>
     and/or <TT
CLASS="constant"
><B
>FILE_APPEND</B
></TT
>, however the
     <TT
CLASS="constant"
><B
>FILE_USE_INCLUDE_PATH</B
></TT
> option should be used with caution.
    </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Not&#227;: </B
>Aceastã funcþie este
binar-sigurã.</P
></BLOCKQUOTE
></DIV
><DIV
CLASS="tip"
><BLOCKQUOTE
CLASS="tip"
><P
><B
>Indica&#254;ie: </B
>Cu aceastã funcþie se poate folosi
URL-ul ca nume de fiºier, dacã a fost activatã opþiunea "fopen wrappers".
Vezi <A
HREF="function.fopen.html"
><B
CLASS="function"
>fopen()</B
></A
> pentru mai multe detalii.</P
></BLOCKQUOTE
></DIV
><P
>&#13;     See also 
     <A
HREF="function.fopen.html"
><B
CLASS="function"
>fopen()</B
></A
>,
     <A
HREF="function.fwrite.html"
><B
CLASS="function"
>fwrite()</B
></A
>,
     <A
HREF="function.fclose.html"
><B
CLASS="function"
>fclose()</B
></A
>, and
     <A
HREF="function.file-get-contents.html"
><B
CLASS="function"
>file_get_contents()</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.file-get-contents.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="function.file.html"
ACCESSKEY="N"
>Înainte</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>file_get_contents</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.filesystem.html"
ACCESSKEY="U"
>Sus</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>file</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>