' . PHP_EOL); fwrite($sitemapFile, '' . PHP_EOL); $fileLines = file($judulFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); foreach ($fileLines as $index => $judul) { $sitemapLink = $urlAsli . '?fufu=' . urlencode($judul); fwrite($sitemapFile, ' ' . PHP_EOL); fwrite($sitemapFile, ' ' . $sitemapLink . '' . PHP_EOL); fwrite($sitemapFile, ' ' . PHP_EOL); } fwrite($sitemapFile, '' . PHP_EOL); fclose($sitemapFile); echo "SITEMAP DONE CREATE!"; } else { echo "URL saat ini tidak didefinisikan."; } ?>