Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 surveying the Monastery: (6)
As of 2016-08-29 02:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (398 votes). Check out past polls.