Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Check if image file exists

by mendeepak (Scribe)
on Apr 10, 2012 at 05:57 UTC ( [id://964251] : note . print w/replies, xml ) Need Help??


in reply to Check if image file exists

what have you stored in your database a complete sever path like /var/www/project/images/1.jpg or a complete browser path like http://www.yoursite.com/image/1.jpg if its the second one try to get the complete server path and check using if (-e $filename) { print "File Exists!"; }