title: Unique and temporary file names in PHP?
body: <p>I need to convert some files to PDF and then attach them to an email.  I'm using Pear Mail for the email side of it and that's fine (mostly--still working out some issues) but as part of this I need to create temporary files.  Now I could use the <a href="http://au.php.net/manual/en/function.tempnam.php" rel="noreferrer">tempnam()</a> function but it sounds like it creates a file on the filesystem, which isn't what I want.</p>
  
  <p>I just want a name in the temporary file system (using <a href="http://au.php.net/manual/en/function.sys-get-temp-dir.php" rel="noreferrer">sys_get_temp_dir()</a>) that won't clash with someone else running the same script of the same user invoking the script more than once.</p>
  
  <p>Suggestions?</p>