<?php //By Pedro Laxe $arq = 'config.php'; if (file_exists($arq)) { echo "O arquivo $filename existe"; } else { echo "O arquivo $filename não existe"; } ?>