title: Creating a temporary file with .pdf extension php tempnam
body: <p>Is it possible to create a .pdf file extension when using tempname? I need to send an e-mail with a file created using tempname. (I can send the file, but I need the .pdf extension)</p>