Posts by Andreson Ferreira Magalhes • 1 point
1 post
-
-2
votes3
answers1249
viewsA: PHP condition not to display image when it does not exist
<?php $imagem3 = "caminho/da/imagem/img.png"; if (file_exists($imagem3)) { echo("<img src='".$imagem3."'>"); } ?> this code will work!