September 2001
Intermediate to advanced
768 pages
32h 45m
English
string tempnam(string directory, string prefix)
Generates a temporary filename.
Returns:
Temporary filename; FALSE on error
Description:
This function generates a temporary filename unique within the specified directory. This function does not create the file; it only generates a name for it.
If the specified directory doesn’t exist, PHP uses the system’s default directory for temporary files. This directory is determined by the underlying system’s C library tempnam() function and is specified by the environment variable TMPDIR on Linux and TMP on Windows. If the system’s C library doesn’t provide a tempnam() function, PHP uses an internal function to generate a temporary filename, which uses a directory specified by the environment ...
Read now
Unlock full access