Join Up!
104886 members and counting!

 
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previoustempnamtouchnext
Last updated: Mon, 28 Oct 2002
view the printer friendly version or the printer friendly version with notes or change language to Czech | Spanish

tmpfile

(PHP 3>= 3.0.13, PHP 4 )

tmpfile -- Legt eine temporäre Datei an

Beschreibung

int tmpfile ( void)

Erstellt eine temporäre Datei mit einem eindeutigen Dateinamen im Schreibmodus und gibt einen Dateizeiger ähnlich wie es bei der Funktion fopen() erfolgt, zurück. Die Datei wird automatisch gelöscht, wenn sie geschlossen wird (mit fclose()), oder das Skript beendet wird.

Für Details konsultieren Sie bitte die Dokumentation Ihres Betriebssystems bzgl. der tmpfile(3) Funktion, wie auch die stdio.h Header-Datei.

Beispiel 1. tmpfile()

$temp = tmpfile();
fwrite($temp, "schreibt in Temporärdatei");
fclose($temp); // dies entfernt die Datei

Siehe auch tempnam().

User Contributed Notes
tmpfile
add a note about notes
There are no user contributed notes for this page.
previoustempnamtouchnext
Last updated: Mon, 28 Oct 2002
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: http://phpbuilder.com/
Last updated: Thu Oct 31 18:34:28 2002 EST