Wrong Image

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
gerit99
Forum Newbie
Posts: 6
Joined: Mon Mar 04, 2013 10:19 am

Wrong Image

Post by gerit99 »

If there is an error with an image like it doesn't exist, how can you change it to a not available image?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Wrong Image

Post by Celauran »

file_exists()

Code: Select all

if (file_exists(whatever)) {
    display image
} else {
    display default image
}
Post Reply