Click here to reset or clear this form
This tool is developed by: PHP Developer. org
Click here to proceed with the analysis');
}
else
{
//explode data and assign it to an array
$data = explode("\n", $url);
echo '';
//print array elements
echo '<?xml version="1.0" encoding="UTF-8"?>';
echo '
';
echo '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';
echo '
';
//computation of priority differences
$difference = (-0.5)/((sizeof($data))-1);
$priority=1.0;
while (($priority>=0.4) && (list($key,$value) = each($data))) {
$roundpriority=round($priority,2);
echo "<url>";
echo "
";
echo " <loc>$value</loc>";
echo "
";
echo " <priority>$roundpriority</priority>";
echo "
";
echo "</url>";
echo "
";
$priority=$priority+$difference;
}
echo "</urlset>";
}
}
?>