Re: verifying uploaded images
| From: | Charles Killian | Date: | Mon, 24 Jul 2000 02:24:13 +0000 |
| Subject: | Re: verifying uploaded images | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-7806@lists.php.net to get a copy of this message | ||
You can use the function GetImageSize(). It will tell you the type of image.
Charles
----- Original Message -----
From: "Generic Player" <generic@unitedtamers.com>
To: <php-general@lists.php.net>
Sent: Sunday, July 23, 2000 7:04 PM
Subject: [PHP] verifying uploaded images
> Hi
>
> I have a form so people can upload images, which are then displayed with
> any posts they make on the message board. Question is, is there a way
> to verify wether or not the image.jpg they uploaded is actually a jpeg
> and not another type of file renamed, and will it matter? Is there any
> way that a malicious script of some sort could be uploaded in that way
> and run?
>
> Thanks
> Generic Player
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>