Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Check if image file exists

by mendeepak (Scribe)
on Apr 10, 2012 at 05:57 UTC ( #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!"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://964251]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2016-10-01 17:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (3 votes). Check out past polls.