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