[PHP] RE: problem finding out original filename while using php to upload.

2001-12-17 Thread Jerry Verhoef (UGBI)
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

[PHP] Re: problem finding out original filename while using php to upload.

2001-12-16 Thread Daniel Grace
"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