Hi all,
First, let me tell you that I really started using PHP only 2 weeks ago, so sorry if I seem a bit ...noob... 🙂
I created a PHP function that uses the GD library to upload and resize an image.
I would like to know if there is a way to know that the image uploaded is really a JPG (other than checking the extension).
Let me make myself clear. Suppose someone renames a word document from aaa.doc to aaa.jpg and tries to upload it. Is there a way to know that it is not a JPEG before the file is processed?
Thanks,
Simo