I\'ve got an image upload script which was previously working. It\'s now broken, and I\'ve traced the problem down to one line:
$temp = tmpfile(); // $temp
In my case, the folder it was trying to create the file in had temp files ranging all the way up to tmpFFFF.tmp. After moving those temp files away from the folder, it started back at tmp1.tmp.