adominator101
08-01-2010, 07:33 AM
I need a script that will allow me to show an image, but if that image doesn't exists, then show a default image. Here's my scenario, I have an upload script where the user uploads a picture, now I need a script that will show that picture if it actually exists (meaning it was uploaded), if it doesn't exist, then I need it to show a "default" picture.
So basically:
Image show "/path/to/Picture1.jpg", but if Picture1.jpg doesn't exists, then show "domain.com/default.jpg"
Sorry, I just dont really know how to explain this.. :)
So basically:
Image show "/path/to/Picture1.jpg", but if Picture1.jpg doesn't exists, then show "domain.com/default.jpg"
Sorry, I just dont really know how to explain this.. :)