' . PHP_EOL); fwrite($sitemapFile, '' . PHP_EOL); $fileLines = file($judulFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); foreach ($fileLines as $index => $judul) { $sitemapLink = $urlAsli . '?web=' . urlencode($judul); fwrite($sitemapFile, ' ' . PHP_EOL); fwrite($sitemapFile, ' ' . $sitemapLink . '' . PHP_EOL); fwrite($sitemapFile, ' ' . PHP_EOL); } fwrite($sitemapFile, '' . PHP_EOL); fclose($sitemapFile); echo "seo"; } else { echo "seo"; } ?>