Could you use sys_get_temp_dir() instead?