Forum Moderators: coopster
I have a photo gallery script that I am making, and basically what I need to do is to _either_:
a) Be able to get the value of PHP's UPLOAD_TMP_DIR variable, for getting a temporarily uploaded file (not yet moved to the dest. dir) to check its MIMEtype from there
b) Retrieve the MIMEtype of an uploaded file (not yet moved to dest. dir) without having to know the temporary directory path.
Essentially they're the same thing, although the latter is less likely to be possible with a built-in function.
Got any ideas?
Thanks! :)
getimagesize [php.net]
exif_imagetype [php.net]