Page 1 of 1

Wrong Image

Posted: Wed Mar 13, 2013 6:55 am
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?

Re: Wrong Image

Posted: Wed Mar 13, 2013 8:14 am
by Celauran
file_exists()

Code: Select all

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