.html olarakmı oluşturuyorsun dosyayı? eqer öleyse for döngüsünün içine if(!file_exists("$i.html")) { dosyaolusturiniceyazbilmemne } gibi bişi yap