Page 1 of 1

Find out what image it is...

Posted: Mon Aug 01, 2005 9:56 am
by Dale
Say i had a varible $imagename and it's value was:

Code: Select all

http://www.d-frame.co.uk/images/logo.gif
, what pieces of code can i use to tell the visitor that that image is a GIF ? I know it sounds a weird question but can someone pwease help me :D

Posted: Mon Aug 01, 2005 10:01 am
by feyd
getimagesize()will cover most image types you're likely to encounter, other tools include ImageMagick's indentifier stuffs...

Posted: Mon Aug 01, 2005 10:23 am
by Dale
Cheers ;)