Um, I used $HTTP_POST_FILES['userfile']['tmp_name'], (vincent,) it came up as:
<B>Warning</B>: fopen("none","r") - No such file or directory in <B>/home/www/stevenchalker.net/php/attach.phtml</B> on line <B>7</B>
fopen("none","r") <<
$HTTP_POST_FILES['userfile']['tmp_name'] returns 'none' if the file didn't upload. You should do a file_exists and/or is_uploaded_file on this first.
Well; I use: if($userfile || file_exists($userfile)) and it returns 'none'