PEAR Handbuch | ||
---|---|---|
Zurück | Nach vorne |
Parameter
$args - the arguments, see the "Example" section
prefix - The string that will be prepended to the temp name (defaults to "tmp").
-d - A temporal dir will be created instead of a file.
-t - The target dir where the temporal file or dir will be created. If this param is missing by default System::tmpDir() will be used to find it.
Returns
mixed - PEAR_Error or the full path of the created file or dir
The mkTemp() will use internally System::tmpDir() to find the correct temporal directory reading the properly system environment variables.
$tempfile = System::mktemp("prefix"); $tempdir = System::mktemp("-d prefix"); $tempfile = System::mktemp(); $tempfile = System::mktemp("-t /var/tmp prefix"); |
Zurück | Zum Anfang | Nach vorne |
System::cat() | Nach oben | System::type() |