In PHP, is there any way [or some function that has the purpose] to get the directory where temporary files are saved on a particular operating system?
I know that the tempnam
function generates a temporary name for a file. When the directory passed by the first parameter does not exist, it returns a file name along with the temporary folder.
But I want to know how to get only the temporary folder.