System::mkTemp()

System::mkTemp() -- creates temporal files or directories

Description

mixed mktemp (string $args)

Parameter

Returns

The mkTemp() will use internally System::tmpDir() to find the correct temporal directory reading the properly system environment variables.

Example

$tempfile = System::mktemp("prefix");
$tempdir  = System::mktemp("-d prefix");
$tempfile = System::mktemp();
$tempfile = System::mktemp("-t /var/tmp prefix");