tempnam

tempnam

(PHP 4, PHP 5, PHP 7)

tempnamCreate file with unique file name

Description

string tempnam ( string $dir , string $prefix )

Creates a file with a unique filename, with access permission set to 0600, in the specified directory. If the directory does not exist or is not writable, tempnam() may generate a file in the system's temporary directory, and return the full path to that file, including its name.

Parameters

dir