cvs: phpdoc-hu /reference/filesystem/functions tmpfile.xml
[email protected] ("Lajos Cseppent?")
| Newsgroups | php.doc.hu |
|---|---|
| Message-ID | <cvschappy1170439119@cvsserver> |
chappy Fri Feb 2 17:58:39 2007 UTC
Added files:
/phpdoc-hu/reference/filesystem/functions tmpfile.xml
Log:
sync
http://cvs.php.net/viewvc.cgi/phpdoc-hu/reference/filesystem/functions/tmpfile.xml?view=markup&rev=1.1
Index: phpdoc-hu/reference/filesystem/functions/tmpfile.xml
+++ phpdoc-hu/reference/filesystem/functions/tmpfile.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.8 Maintainer: chappy Status: ready -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.32 -->
<refentry id="function.tmpfile">
<refnamediv>
<refname>tmpfile</refname>
<refpurpose>Létrehoz egy ideiglenes fájlt</refpurpose>
</refnamediv>
<refsect1>
<title>Leírás</title>
<methodsynopsis>
<type>resource</type><methodname>tmpfile</methodname>
<void/>
</methodsynopsis>
<para>
Látrehoz egy ideiglenes fájl egyedi névvel, és megnyitja olvasás-írás módon (w+),
visszaadva a fájlpointert, ami hasonló az
<function>fopen</function> függvény által visszaadotthoz.
A fájlt magától törli a bezárás után (<function>fclose</function>
függvénnyel), vagy amikor a program futása véget ér.
</para>
<para>
A részletekért nézz utána a rendszer dokumentációban a
<literal>tmpfile(3)</literal> függvénynek, valamint az
<filename>stdio.h</filename> fejlécfájlban.
</para>
<para>
<example>
<title><function>tmpfile</function> példa</title>
<programlisting role="php">
<![CDATA[
<?php
$temp = tmpfile();
fwrite($temp, "writing to tempfile");
fseek($temp, 0);
echo fread($temp, 1024);
fclose($temp); // ez törli a fájlt
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
writing to tempfile
]]>
</screen>
</example>
</para>
<para>
Lásd még: <function>tempnam</function>, <function>sys_get_temp_dir</function>.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->