★ wanayoo — archive 1999 http://uk.php.net/manual/ru/function.tmpfile.phpNouvelle recherche | Portail wanayoo
PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<tempnamtouch>
view the version of this page
Last updated: Sun, 18 Jul 2004

tmpfile

(PHP 3>= 3.0.13, PHP 4 , PHP 5)

tmpfile -- Creates a temporary file

Description

resource tmpfile ( void )

Creates a temporary file with an unique name in write mode, returning a file handle similar to the one returned by fopen(). The file is automatically removed when closed (using fclose()), or when the script ends.

For details, consult your system documentation on the tmpfile(3) function, as well as the stdio.h header file.

Пример 1. tmpfile() example

<?php
$temp
= tmpfile();
fwrite($temp, "writing to tempfile");
fclose($temp); // this removes the file
?>

See also tempnam().



add a note add a note User Contributed Notes
tmpfile
There are no user contributed notes for this page.

<tempnamtouch>
 Last updated: Sun, 18 Jul 2004
show source | credits | sitemap | contact | advertising | mirror sites 
Copyright © 2001-2004 The PHP Group
All rights reserved.
This mirror generously provided by: Kewlio.net Limited
Last updated: Wed Dec 1 07:17:00 2004 GMT