cvs: phpdoc /en/functions filesystem.xml
| From: | Jesus M. Castagnetto | Date: | Wed, 01 Nov 2000 21:55:46 +0000 |
| Subject: | cvs: phpdoc /en/functions filesystem.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969332752@lists.php.net to get a copy of this message | ||
jmcastagnetto Wed Nov 1 13:55:46 2000 EDT
Modified files:
/phpdoc/en/functions filesystem.xml
Log:
documentation of fflush
Index: phpdoc/en/functions/filesystem.xml
diff -u phpdoc/en/functions/filesystem.xml:1.42 phpdoc/en/functions/filesystem.xml:1.43
--- phpdoc/en/functions/filesystem.xml:1.42 Thu Oct 19 06:11:07 2000
+++ phpdoc/en/functions/filesystem.xml Wed Nov 1 13:55:46 2000
@@ -382,6 +382,33 @@
</refsect1>
</refentry>
+ <refentry id="function.fflush">
+ <refnamediv>
+ <refname>fflush</refname>
+ <refpurpose>Flushes the output to a file</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>int <function>fflush</function></funcdef>
+ <paramdef>int <parameter>fp</parameter></paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ This function forces a write of all buffered output to the
+ to the resource pointed to by the file handle
+ <parameter>fp</parameter>. Returns true if succesful, false
+ otherwise.
+ </para>
+ <para>
+ The file pointer must be valid, and must point to a file
+ successfully opened by <function>fopen</function>,
+ <function>popen</function>, or <function>fsockopen</function>.
+ </para>
+ </refsect1>
+ </refentry>
+
<refentry id="function.fgetc">
<refnamediv>
<refname>fgetc</refname>
@@ -959,30 +986,30 @@
<itemizedlist>
<listitem>
<simpara>
- To acquire a shared lock (reader), set
- <parameter>operation</parameter> to LOCK_SH (set to 1 prior to
- PHP 4.0.1).
+ To acquire a shared lock (reader), set
+ <parameter>operation</parameter> to LOCK_SH (set to 1 prior to
+ PHP 4.0.1).
</simpara>
</listitem>
<listitem>
<simpara>
- To acquire an exclusive lock (writer), set
- <parameter>operation</parameter> to LOCK_EX (set to 2 prior to
- PHP 4.0.1).
+ To acquire an exclusive lock (writer), set
+ <parameter>operation</parameter> to LOCK_EX (set to 2 prior to
+ PHP 4.0.1).
</simpara>
</listitem>
<listitem>
<simpara>
- To release a lock (shared or exclusive), set
- <parameter>operation</parameter> to LOCK_UN (set to 3 prior to
- PHP 4.0.1).
+ To release a lock (shared or exclusive), set
+ <parameter>operation</parameter> to LOCK_UN (set to 3 prior to
+ PHP 4.0.1).
</simpara>
</listitem>
<listitem>
<simpara>
- If you don't want <function>flock</function> to block while
- locking, add LOCK_NB (4 prior to PHP 4.0.1) to
- <parameter>operation</parameter>.
+ If you don't want <function>flock</function> to block while
+ locking, add LOCK_NB (4 prior to PHP 4.0.1) to
+ <parameter>operation</parameter>.
</simpara>
</listitem>
</itemizedlist>
@@ -1068,42 +1095,42 @@
<itemizedlist>
<listitem>
<simpara>
- 'r' - Open for reading only; place the file pointer at the
- beginning of the file.
+ 'r' - Open for reading only; place the file pointer at the
+ beginning of the file.
</simpara>
</listitem>
<listitem>
<simpara>
- 'r+' - Open for reading and writing; place the file pointer at
- the beginning of the file.
+ 'r+' - Open for reading and writing; place the file pointer at
+ the beginning of the file.
</simpara>
</listitem>
<listitem>
<simpara>
- 'w' - Open for writing only; place the file pointer at the
- beginning of the file and truncate the file to zero length.
- If the file does not exist, attempt to create it.
+ 'w' - Open for writing only; place the file pointer at the
+ beginning of the file and truncate the file to zero length.
+ If the file does not exist, attempt to create it.
</simpara>
</listitem>
<listitem>
<simpara>
- 'w+' - Open for reading and writing; place the file pointer at
- the beginning of the file and truncate the file to zero
- length. If the file does not exist, attempt to create it.
+ 'w+' - Open for reading and writing; place the file pointer at
+ the beginning of the file and truncate the file to zero
+ length. If the file does not exist, attempt to create it.
</simpara>
</listitem>
<listitem>
<simpara>
- 'a' - Open for writing only; place the file pointer at the end
- of the file. If the file does not exist, attempt to create
- it.
+ 'a' - Open for writing only; place the file pointer at the end
+ of the file. If the file does not exist, attempt to create
+ it.
</simpara>
</listitem>
<listitem>
<simpara>
- 'a+' - Open for reading and writing; place the file pointer at
- the end of the file. If the file does not exist, attempt to
- create it.
+ 'a+' - Open for reading and writing; place the file pointer at
+ the end of the file. If the file does not exist, attempt to
+ create it.
</simpara>
</listitem>
</itemizedlist>
@@ -2391,10 +2418,10 @@
$tmpfname = tempnam ("/tmp", "FOO");
</programlisting>
</example>
+ </para>
+ <para>
+ See also <function>tmpfile</function>.
</para>
- <para>
- See also <function>tmpfile</function>.
- </para>
</refsect1>
</refentry>
@@ -2442,9 +2469,9 @@
<funcdef>int <function>touch</function></funcdef>
<paramdef>string <parameter>filename</parameter></paramdef>
<paramdef>int
- <parameter>
- <optional>time</optional>
- </parameter>
+ <parameter>
+ <optional>time</optional>
+ </parameter>
</paramdef>
</funcprototype>
</funcsynopsis>