mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 17:08:54 +00:00
documentation for tmpfile
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@30649 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
397108fb59
commit
3feb92cd34
1 changed files with 34 additions and 0 deletions
|
@ -2262,9 +2262,43 @@ $tmpfname = tempnam ("/tmp", "FOO");
|
|||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>tmpfile</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.tmpfile">
|
||||
<refnamediv>
|
||||
<refname>tmpfile</refname>
|
||||
<refpurpose>Creates a temporary file</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
<funcdef>int <function>tmpfile</function></funcdef>
|
||||
<paramdef>void</paramdef>
|
||||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
Creates a temporary file with an unique name in write mode,
|
||||
returning a file handle, similar to the one returned by
|
||||
<function>fopen</function>
|
||||
The file is automatically removed when closed (using
|
||||
<function>fclose</function>), or when the script ends.
|
||||
</para>
|
||||
<para>
|
||||
For details, consult your system documentation on the tmpfile(3)
|
||||
function, as well as the <literal>stdio.h</literal> header file.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>tempnam</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
||||
<refentry id="function.touch">
|
||||
<refnamediv>
|
||||
<refname>touch</refname>
|
||||
|
|
Loading…
Reference in a new issue