<?php if (is_file(H.'style/img/files/' . $ras . '.png')) { echo "<img src = '/style/img/files/$ras.png' alt='$ras' /> "; } else { echo "<img src = '/style/img/file.png' alt='file' /> "; }