This content has been marked as final. Show 4 replies
You can use the fileExists() function, but this is a little inefficient so if you are on Apache you can use mod_Rewrite to serve the default image if the named file does not exists!!
Thanks. I am not using Apache. 2. Will try fileExists though not sure how to code this. Any tips?
Try something like this:-
Excellent, that codes works perfect.
Thankyou very much.