Welcome aboard! We are happy you are here and wish you good net-raft!
<?php header ("Content-Type: application/xml; charset=utf-8"); ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<?php
$root = "https://$_SERVER[SERVER_NAME]/";
foreach (glob("*.php") as $filename) {
$loc = $root . ($filename == "index.php" ? "" : $filename);
$lastmod = gmdate('Y-m-d\TH:i:s', filemtime($filename));
?>
<url>
<loc><?php echo $loc; ?></loc>
<lastmod><?php echo $lastmod; ?></lastmod>
</url>
<?php } ?>
</urlset>
The most helpful PHP solutions
detect browser phpPHP Click to see more ... 4.6K 408