PHP: php_stream_fopen_temporary_file - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Streams Socket API Reference php_stream_fopen_tmpfile

Last updated: Fri, 26 Jan 2007

view this page in

# php_stream_fopen_temporary_file

php_stream_fopen_temporary_file -- Generate a temporary file name and open a stream on it

## Description

php_stream * php_stream_fopen_temporary_file ( const char * dir, const char * pfx, char ** opened )

php_stream_fopen_temporary_file() generates a temporary file name in the directory specified by `dir` and with a prefix of `pfx`. The generated file name is returns in the `opened` parameter, which you are responsible for cleaning up using efree(). A stream is opened on that generated filename in "w+b" mode. The file is NOT automatically deleted; you are responsible for unlinking or moving the file when you have finished with it.

add a note User Contributed Notes
php_stream_fopen_temporary_file
There are no user contributed notes for this page.
Streams Socket API Reference php_stream_fopen_tmpfile

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST