On my web page I show picture from some directory, the name of article and picture is taken from database. In subdirectory for some articles I have additional picture with the same name.
How can I check this subdirectory if does it has picture with the same name, and if this subdirectory includes this picture to show link (detail, or picture 2) otherwise doesn't show link.
Thank you.