There's really no "perfect thing" in this case as far as i can tell, you could do a check if file exists, but that'll slow down the script. I would approach the problem in a way so that you have all images end in the same extension.
__________________
<developer> MechBunny  / KVS / PHP / MySQL / HTML5 / CSS3 / jQuery 
Email: vlad [at] faxite.com
Telegram: @dangerouscoding
|