I don't believe that PHP is capable of doing this. You pretty much have to upload the whole file to check what's in it server-side. You might check into JavaScript.
What you are wanting to look at is the Content-Type: header at the start of the file. Which will contain the image/jpeg or image/pjpeg, etc attribute.
A picture file has this structure:
//headers
//data
Since your images are stored in the PHP Temp directory and are deleted from that directory at the end of a script you should be able to get by fine on uploading the whole file, then checking the file type attribute which is the content-type header I was talking about, this becomes $_FILES["userfile"]["type"] upon upload. Where userfile is the name of the field. And then moving the file elsewhere upon successful authentication. This header information isn't going to be changed if someone just changes the extension on a file.
Otherwise I suggest you check into JavaScript to check that header information client-side. Best to do it on both sides though. Lest you run into security issues.
If your upload isn't working in IE 6, you probably have an HTML error. Post some code.
: )
Rich
:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::