Creates a temporary filename for the lifetime of the script, and
(optionally) registers it to be deleted at request shutdown.
public static getTempFile ( string $prefix = 'Horde', boolean $delete = true, string $dir = '', boolean $secure = false, boolean $session_remove = false ) : string | ||
$prefix | string | Prefix to make the temporary name more recognizable. |
$delete | boolean | Delete the file at the end of the request? |
$dir | string | Directory to create the temporary file in. |
$secure | boolean | If deleting file, should we securely delete the file? |
$session_remove | boolean | Delete this file when session is destroyed? |
return | string | Returns the full path-name to the temporary file or false if a temporary file could not be created. |