Creates temporary files or directories. This function will remove the created files when the scripts finish its execution.
Parameter
string $args - The arguments
prefix - The string that will be prepended to the temp name (defaults to tmp)
-d - A temporary dir will be created instead of a file.
-t - The target dir where the temporary file or directory will be created. If this parameter is missing, by default the enviroment vars TMP on Windows or TMPDIR on Unix will be used. If these vars are also missing c:\windows\temp or /tmp will be used.
Return value
mixed - the full path of the created file or dir, or FALSE
Deliver First Class Web Sites: 101 Essential Checklists Want to learn how to make your web sites usable and accessible? Want to ensure that your sites meet current best practice, without spending hours trawling through incomprehensible specifications and recommendations from dozens of different books, research papers, and web sites? Want to make sure that the sites you build are "right the first time," requiring no costly redevelopments?