I am want to display images from the MLS on my website.Downloading all the images and then uploading them to my server is a waste of time. Each listing has a different # of photos. The only thing that changes is the subdirectory for each photo.
Is there a to check for the existence of the photo? I tried the following and obviously it was the incorrect approach: