public function getTmpDir() { $tmp = sys_get_temp_dir() . '/' . uniqid('am'); mkdir($tmp); return $tmp; }