You could also use the function getimagesize this will tell what kind of
image it is, and if it is not an image it will return false.
GD LIB is NOT needed for getimagesize.
Kind Regards,
Jerry Verhoef
-Original Message-
From: Daniel Grace [mailto:[EMAIL PROTECTED]]
Sent: Monday, Decembe
"Neil M" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am using php to upload image files.
>
> heres my code ..
>
> if (is_uploaded_file($photo_file))
> {
>
> clearstatcache ();
> $size = filesize ( $photo_file ) ;
> if ( $size > 1024000 )
> {
> print
2 matches
Mail list logo